Session.FlushChangesAsync(AsyncCommitCallback) Method
Asynchronously saves changes made to persistent objects to a data store, clears a list of tracked changes and notifies upon completion.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public object FlushChangesAsync(
AsyncCommitCallback callback
)
#Parameters
Name | Type | Description |
---|---|---|
callback | Async |
An Async |
#Returns
Type | Description |
---|---|
Object | An object identifying the current asynchronous operation, intended for internal use. |
#Remarks
Call this method to asynchronously save any changes made to persistent objects after the Session.TrackingChanges property has been set to true. To discard changes and clear a list of tracked changes, call the Session.DropChanges method.
When a list of tracked changes is about to be processed, the Session.BeforeFlushChanges event is raised. After a list of tracked changes has been cleared, the Session.AfterFlushChanges event is raised.
Note
Calling the Flush