The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Session.FailedCommitTransaction Event

Occurs when the Commit Transaction operation fails due to database constraints or other circumstances.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public event SessionOperationFailEventHandler FailedCommitTransaction
Public Event FailedCommitTransaction As SessionOperationFailEventHandler
public event SessionOperationFailEventHandler FailedCommitTransaction
Public Event FailedCommitTransaction As SessionOperationFailEventHandler

Event Data

The FailedCommitTransaction event handler receives an argument of the SessionOperationFailEventArgs type. The following properties provide information specific to this event.

Property Description
Exception Gets the exception thrown by a database when committing a transaction or changes made to persistent objects.
Handled Specifies whether the default processing of an exception is prohibited.

Remarks

This event occurs, for instance, when an exception is thrown when performing the Commit Transaction operation (Session.CommitTransaction, ExplicitUnitOfWork.CommitTransaction, Session.CommitTransactionAsync, or ExplicitUnitOfWork.CommitTransactionAsync). The Exception parameter allows you to identify the current exception. To respond to the exception, use the Handled parameter.

See Also