Click or drag to resize
CalculationWorks Logo
BcfTransactionRollback Method (Exception)
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(
	Exception reason
)

Parameters

reason
Type: SystemException
When an exception occurs the reason will be placed as inner exception - or in case of a BcfRollbackException as Reason property. Default is null.
Exceptions
ExceptionCondition
InvalidOperationException

IsCurrent and IsCommitted are false

IsCommitted is true

BcfRollbackExceptionRollback failed.
Remarks
Before every end of any transaction or subtransaction and every begin of a subtransaction the queued calculations and validations will be processed.
Version Information

CalculationWorks.BusinessModel

Supported in: 3.0, 2.1, 2.0
See Also