Click or drag to resize
CalculationWorks Logo
BcfDataSetSetupAddRelation Method (String, BcfColumnSetup, BcfColumnSetup, BcfRelationRule, BcfRelationRule)
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[] parentColumns,
	BcfColumnSetup[] childColumns,
	BcfRelationRule updateRule,
	BcfRelationRule deleteRule
)

Parameters

relationName
Type: SystemString
Name of the relation.
parentColumns
Type: CalculationWorks.BusinessModel.DesignBcfColumnSetup
The parent columns.
childColumns
Type: CalculationWorks.BusinessModel.DesignBcfColumnSetup
The child columns.
updateRule
Type: CalculationWorks.BusinessModelBcfRelationRule
The update action.
deleteRule
Type: CalculationWorks.BusinessModelBcfRelationRule
The delete action.

Return Value

Type: BcfRelationSetup
BcfRelationSetup.
Exceptions
ExceptionCondition
ArgumentNullExceptionparentColumns or childColumns or relationName is null
ArgumentExceptionparentColumns or childColumns is empty or any ColumnSetup in parent column and child columns belongs to another BcfDatasetSetup
See Also