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+

ExplicitUnitOfWork.RollbackTransaction() Method

Rolls back an explicit transaction to its starting point, discarding any changes made within it.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public override void RollbackTransaction()
Public Overrides Sub RollbackTransaction
public override void RollbackTransaction()
Public Overrides Sub RollbackTransaction

Remarks

All data modifications made since the ExplicitUnitOfWork.BeginTransaction method call can be committed (ExplicitUnitOfWork.CommitTransaction, ExplicitUnitOfWork.CommitTransactionAsync, UnitOfWork.CommitChanges, or UnitOfWork.CommitChangesAsync), or discarded (RollbackTransaction). Disposing of an explicit unit of work automatically rolls back any pending data modifications.

Calling the RollbackTransaction method performs the following:

Note

An object's state modified within a transaction is not automatically returned to its former state by the RollbackTransaction method call. In order to refresh the object's state, use the XPBaseObject.Reload method.

See Also