Click or drag to resize
CalculationWorks Logo
BcfDataSetBeginTransaction Method (Boolean)
Creates a transaction and sets it as the CurrentTransaction. If CurrentTransaction is not null before calling BeginTransaction a subtransaction of the CurrentTransaction will be created.

Namespace: CalculationWorks.BusinessModel
Assembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 3.0.2.0
Syntax
public BcfTransaction BeginTransaction(
	bool autoRollback
)

Parameters

autoRollback
Type: SystemBoolean
if set to true transaction will automatic rollback when commit fails. Default is true.

Return Value

Type: BcfTransaction
BcfTransaction.
Exceptions
ExceptionCondition
InvalidOperationException reentrancy call (ReleasingEvents 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

BcfComputeExceptionCurrentTransaction is not null and enforcing relations or calculation caused an exception
Version Information

CalculationWorks.BusinessModel

Supported in: 3.0, 2.1, 2.0
See Also