CalculationWorks Logo
BcfDataSetSetupAddRelation Method (String, BcfColumnSetup, BcfColumnSetup, BcfRelationRule, BcfRelationRule)CalculationWorks BCF Library 1.1 for .NET Framework 4.5

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

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: 1.1.0.0
Syntax

public BcfRelationSetup AddRelation(
	string relationName,
	BcfColumnSetup[] parentColumns,
	BcfColumnSetup[] childColumns,
	BcfRelationRule rule,
	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.
rule
Type: CalculationWorks.BusinessModelBcfRelationRule
The update action.
deleteRule
Type: CalculationWorks.BusinessModelBcfRelationRule
The delete action.

Return Value

Type: BcfRelationSetup
BcfRelationSetup.
Exceptions

ExceptionCondition
ArgumentNullException parentColumns or childColumns is null
ArgumentExceptionparentColumns or childColumns length is empty
See Also

Reference