ExplicitUnitOfWork.CommitTransactionAsync(AsyncCommitCallback) Method
Asynchronously completes a database level transaction and notifies upon completion.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public override object CommitTransactionAsync(
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
All data modifications made since the ExplicitUnitOfWork.BeginTransaction method call can be committed (ExplicitUnitOfWork.CommitTransaction, CommitTransactionAsync, UnitOfWork.CommitChanges, or UnitOfWork.CommitChangesAsync) or discarded (ExplicitUnitOfWork.RollbackTransaction).
Calling the CommitTransactionAsync method performs the following:
- Asynchronously flushes all data modifications via the Session.FlushChangesAsync method call.
- Raises the Session.BeforeCommitTransaction event. Once an explicit transaction is committed, the Session.AfterCommitTransaction event is raised.