ExplicitUnitOfWork.CommitTransaction() Method
Completes a database level transaction and commits changes made within it.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
Remarks
All data modifications made since the ExplicitUnitOfWork.BeginTransaction method call can be committed (CommitTransaction, ExplicitUnitOfWork.CommitTransactionAsync, UnitOfWork.CommitChanges, or UnitOfWork.CommitChangesAsync) or discarded (ExplicitUnitOfWork.RollbackTransaction).
Calling the CommitTransaction method performs the following:
- Flushes all data modifications via the Session.FlushChanges method call.
- Raises the Session.BeforeCommitTransaction event. Once a database level transaction is committed, the Session.AfterCommitTransaction event is raised.
See Also