Click or drag to resize

BcfRowAddChildRow Method (BcfRelation, BcfRow)

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

Adds the specified row to the child rows specified by childRelation.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.0.0-beta6
Syntax
public void AddChildRow(
	BcfRelation childRelation,
	BcfRow row
)

Parameters

childRelation
Type: CalculationWorks.BusinessModelBcfRelation
The parent relation.
row
Type: CalculationWorks.BusinessModelBcfRow
The new child row.
Exceptions
ExceptionCondition
ArgumentNullExceptionchildRelation or row is null.
ArgumentException

The specified childRelation does not belong to this table's child relations

or

specified row must have row-stateValid

or

the specified row is not in child table

InvalidOperationException

Operation requires row-state Valid.

or

DataSet is Locked.

BcfUpdateExceptionSee BcfUpdateException.
Remarks
If row is already child, nothing will change and no exception will be thrown.
Version Information

BCF

Supported in: 4.0
See Also