CalculationWorks Logo
BcfTransactionRollback Method (Exception)CalculationWorks BCF Library 1.1 for .NET Framework 4.5

[This is preliminary documentation and is subject to change.]

Discards the transaction and restores the data from state before the transaction started.

Namespace: CalculationWorks.BusinessModel
Assembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 1.1.0.0
Syntax

public virtual 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.
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.
See Also

Reference