IdeaBlade.EntityModel.Compat Assembly > IdeaBlade.EntityModel.Compat Namespace > EntityManagerPartialSaveExtensions Class : TrySaveChanges Method |
'Declaration
<ExtensionAttribute()> Public Shared Function TrySaveChanges( _ ByVal entityManager As EntityManager, _ ByVal entities As IEnumerable, _ Optional ByVal saveOptions As SaveOptions _ ) As SaveResult
'Usage
Dim entityManager As EntityManager Dim entities As IEnumerable Dim saveOptions As SaveOptions Dim value As SaveResult value = EntityManagerPartialSaveExtensions.TrySaveChanges(entityManager, entities, saveOptions)
[Extension()] public static SaveResult TrySaveChanges( EntityManager entityManager, IEnumerable entities, SaveOptions saveOptions )
A IdeaBlade.EntityModel.SaveResult is always returned. The SaveResult will indicate if the save was successful, if processing was cancelled, or it an error occurred.
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