Click or drag to resize

BcfDataSetBeginTransaction Method (String, NullableBoolean)

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

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: 4.0.0-beta7
Syntax
public BcfTransaction BeginTransaction(
	string name = null,
	Nullable<bool> enforceConstraints = null
)

Parameters

name (Optional)
Type: SystemString
The transaction name. Default is null.
enforceConstraints (Optional)
Type: SystemNullableBoolean
true 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 true and CurrentTransaction is not null and its EnforceConstraints is false and constraints can not be enforced.
Remarks
When missing the old overloads for BeginTransaction see example BeginTransaction(BcfTransactionBuilder).
See Also