Session.CommitTransactionAsync(AsyncCommitCallback) Method
Asynchronously commits changes made within a transaction, completes it and notifies upon completion.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public virtual 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
To start a transaction, use the Session.BeginTransaction method. To commit all data modifications made since the start of the transaction and complete the transaction, call the CommitTransactionAsync or Session.CommitTransaction method. To discard these modifications, call the Session.RollbackTransaction method.
To determine if a transaction is in progress, use the Session.InTransaction property.
After the CommitTransactionAsync method is called, the Session.BeforeCommitTransaction event is raised.
Note
In a Nested