Click or drag to resize
CalculationWorks Logo
BcfTransactionDropCompensationRepository Method
Drops the compensation repository.

Namespace: CalculationWorks.BusinessModel
Assembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 2.1.0.0
Syntax
public virtual void DropCompensationRepository()
Exceptions
ExceptionCondition
InvalidOperationException

The BcfTransaction is not the current transaction

or

The BcfTransaction is a subtransaction

or

BcfDataSet.ChangeTracking 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

Remarks

A BcfTransaction with a dropped compensation repository cannot Rollback nor Undo.

Dropping the compensation repository will reduce memory consumption and improve performance when expecting massive changes. The effect is small and only present if called before changes are made.

See Also