UnitOfWork.CommitChanges() Method
Commits all the changes made to persistent objects to a data store.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v20.2.dll
Declaration
Remarks
A Unit of Work tracks every change to every persistent object during a transaction that can affect a data store. Its CommitChanges method commits all the changes made to persistent objects to a data store. The only requirement for this is that the property setters call the XPBaseObject.OnChanged method.
Calling the CommitChanges method automatically calls Session.CommitTransaction (in explicit units of work, ExplicitUnitOfWork.CommitTransaction is called).
NOTE
If a save operation fails (for example, due to a database constraint violation), the following exceptions can be raised by XPO:
See Also
Feedback