DevForce Help Reference
SaveChanges Method (EntityManagerPartialSaveExtensions)


The EntityManager holding entities to be persisted.
List of IdeaBlade.EntityModel.IEntity objects to be persisted
Options controlling save processing
Persists one or more selected Entities within the EntityManager cache to the backend data source using the IdeaBlade.EntityModel.SaveOptions specified.
Syntax
'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)

Parameters

entityManager
The EntityManager holding entities to be persisted.
entities
List of IdeaBlade.EntityModel.IEntity objects to be persisted
saveOptions
Options controlling save processing
Exceptions
ExceptionDescription
IdeaBlade.EntityModel.EntityManagerSaveExceptionThrown for save exceptions not handled by an EntityServerError handler
Remarks
Persists a subset of additions, modifications and deletions within the EntityManager cache to the backend data source. Upon success, these entities will be in an Unchanged state.

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.

Requirements

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

See Also

Reference

EntityManagerPartialSaveExtensions Class
EntityManagerPartialSaveExtensions Members

Send Feedback