BcfTransactionDropCompensationRepository Method |
Namespace: CalculationWorks.BusinessModel
Exception | Condition |
---|---|
InvalidOperationException | The BcfTransaction is not the current transaction orThe BcfTransaction is a subtransaction orBcfDataSet.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 |
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.