IdeaBlade.EntityModel.Compat Assembly > IdeaBlade.EntityModel.Compat Namespace > EntityManagerPartialSaveExtensions Class : SaveChanges Method |
'Declaration
<ExtensionAttribute()> Public Shared Sub SaveChanges( _ ByVal entityManager As EntityManager, _ ByVal entities As IEnumerable, _ Optional ByVal saveOptions As SaveOptions _ )
'Usage
Dim entityManager As EntityManager Dim entities As IEnumerable Dim saveOptions As SaveOptions EntityManagerPartialSaveExtensions.SaveChanges(entityManager, entities, saveOptions)
[Extension()] public static void SaveChanges( EntityManager entityManager, IEnumerable entities, SaveOptions saveOptions )
Exception | Description |
---|---|
IdeaBlade.EntityModel.EntityManagerSaveException | Thrown for save exceptions not handled by an EntityServerError handler |
If the save fails an IdeaBlade.EntityModel.EntityManagerSaveException will be thrown.
If the save is cancelled the operation is a no-op and the cache remains in the same state as before the save was called.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2