Click or drag to resize

BcfDataSetBeginTransaction Method (String, NullableBoolean)

Creates a transaction and sets it as the CurrentTransaction. If CurrentTransaction is not before calling BeginTransaction a subtransaction of the CurrentTransaction will be created.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntax
public BcfTransaction BeginTransaction(
	string name = null,
	Nullable<bool> enforceConstraints = null
)

Parameters

name (Optional)
Type: SystemString
The transaction name. Default is .
enforceConstraints (Optional)
Type: SystemNullableBoolean
to enforce relation-constraints after each atomic update. Default is defined in TransactionFactory.EnforceConstraints.

Return Value

Type: BcfTransaction
The created BcfTransaction
Exceptions
ExceptionCondition
InvalidOperationException

BcfDataSet is Locked.

ObjectDisposedExceptionThis instance is disposed.
BcfUpdateExceptionWhen enforceConstraints is and CurrentTransaction is not and its EnforceConstraints is and constraints can not be enforced.
Remarks
When missing the old overloads for BeginTransaction see example BeginTransaction(BcfTransactionBuilder).
See Also