Click or drag to resize
CalculationWorks Logo
BcfDataSetSetupAddRelation Method (String, BcfColumnSetup, BcfColumnSetup)
Adds a new relation to the Relations collection and returns the new associated BcfRelationSetup

Namespace: CalculationWorks.BusinessModel.Design
Assembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 2.1.0.0
Syntax
public BcfRelationSetup AddRelation(
	string relationName,
	BcfColumnSetup parentColumn,
	BcfColumnSetup childColumn
)

Parameters

relationName
Type: SystemString
Name of the relation.
parentColumn
Type: CalculationWorks.BusinessModel.DesignBcfColumnSetup
The parent column.
childColumn
Type: CalculationWorks.BusinessModel.DesignBcfColumnSetup
The child column.

Return Value

Type: BcfRelationSetup
BcfRelationSetup.
Exceptions
ExceptionCondition
ArgumentNullException relationName or parentColumn or childColumn is null
ArgumentExceptionparentColumn or childColumn belongs to another DataSetSetup
See Also