Click or drag to resize
CalculationWorks Logo
BcfTransactionRollback Method
Discards the transaction and restores the data from state before the transaction started.

Namespace: CalculationWorks.BusinessModel
Assembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 3.0.2.0
Syntax
public void Rollback()
Exceptions
ExceptionCondition
InvalidOperationException

IsCurrent and IsCommitted are false

IsCommitted is true

InvalidOperationException

dataset is locked; e.g. BcfDataSet is just switching the current transaction or is undoing/redoing.

do not call this method e.g. from inside BcfFunctionBase, BcfValidatorBase nor IBcfUndoRedoItem

BcfRollbackExceptionRollback failed.
Remarks
The order of the contained rows in any BcfRowCollection (see Rows, ChildRows) is not reliable and may be changed by Rollback, Undo and Redo.
Version Information

CalculationWorks.BusinessModel

Supported in: 3.0, 2.1, 2.0
See Also