Click or drag to resize
CalculationWorks Logo
BcfRelatedRowsCellAddChildRow Method (BcfRow, Boolean)
Adds the specified row (as child row).

Namespace: CalculationWorks.BusinessModel
Assembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 3.2.1.2
Syntax
public void AddChildRow(
	BcfRow childRow,
	bool optimistic
)

Parameters

childRow
Type: CalculationWorks.BusinessModelBcfRow
The new child row.
optimistic
Type: SystemBoolean
if set to true operation will be executed in CurrentTransaction and in case of error the transaction has to be discarded (Rollback). Otherwise operation will be executed in a subtransaction of CurrentTransaction in case of error the subtransaction will be discarded without affecting CurrentTransaction. For best performance set optimistic to true. Default is true.
Exceptions
ExceptionCondition
ArgumentNullExceptionchildRow is null
ArgumentExceptionchildRow is not in Relations ChildTable
InvalidOperationException

Row has invalid state

or

childRow has invalid state

or

dataset is Locked; e.g. BcfDataSet is just switching the CurrentTransaction or is undoing/redoing or calculating.

Version Information

CalculationWorks.BusinessModel

Supported in: 3.2, 3.0, 2.1, 2.0
See Also