Back to Devexpress

Session.BeforeCommitTransaction Event

xpo-devexpress-dot-xpo-dot-session-1ec95432.md

latest2.1 KB
Original Source

Session.BeforeCommitTransaction Event

Occurs when a transaction is about to be completed via the COMMIT operation.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public event SessionManipulationEventHandler BeforeCommitTransaction
vb
Public Event BeforeCommitTransaction As SessionManipulationEventHandler

Event Data

The BeforeCommitTransaction event's data class is SessionManipulationEventArgs. The following properties provide information specific to this event:

PropertyDescription
SessionGets the session currently being processed.

Remarks

The COMMIT operation (Session.CommitTransaction, Session.CommitTransactionAsync, ExplicitUnitOfWork.CommitTransaction, or ExplicitUnitOfWork.CommitTransactionAsync) applies all data modifications made since the start of the transaction and completes the transaction. As a result, the BeforeCommitTransaction event is raised. The event parameter’s SessionManipulationEventArgs.Session property allows the current session to be identified.

After a transaction has been completed via the COMMIT operation, the Session.AfterCommitTransaction event is raised.

See Also

Session Class

Session Members

DevExpress.Xpo Namespace