Session.FlushChanges() Method
Saves changes made to persistent objects to a data store, and clears a list of tracked changes.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v19.2.dll
Declaration
Remarks
Call this method to 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 FlushChanges method sets the Session.TrackingChanges property to false. This method is automatically called when a session or unit of work commits a transaction.