 |
BcfDataSetSetupAddRelation Method (String, BcfColumnSetup, BcfColumnSetup, BcfRelationRule, BcfRelationRule) |
Namespace: CalculationWorks.BusinessModel.DesignAssembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 3.0.2.0
Syntaxpublic BcfRelationSetup AddRelation(
string relationName,
BcfColumnSetup[] parentColumns,
BcfColumnSetup[] childColumns,
BcfRelationRule updateRule,
BcfRelationRule deleteRule
)
Public Function AddRelation (
relationName As String,
parentColumns As BcfColumnSetup(),
childColumns As BcfColumnSetup(),
updateRule As BcfRelationRule,
deleteRule As BcfRelationRule
) As BcfRelationSetup
public:
BcfRelationSetup^ AddRelation(
String^ relationName,
array<BcfColumnSetup^>^ parentColumns,
array<BcfColumnSetup^>^ childColumns,
BcfRelationRule updateRule,
BcfRelationRule deleteRule
)
member AddRelation :
relationName : string *
parentColumns : BcfColumnSetup[] *
childColumns : BcfColumnSetup[] *
updateRule : BcfRelationRule *
deleteRule : BcfRelationRule -> BcfRelationSetup
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:
BcfRelationSetupBcfRelationSetup.
ExceptionsException | Condition |
---|
ArgumentNullException | parentColumns or childColumns or relationName is null |
ArgumentException | parentColumns or childColumns is empty or any ColumnSetup in parent column and child columns belongs to another BcfDatasetSetup |
Version InformationCalculationWorks.BusinessModel
Supported in: 3.0, 2.1, 2.0
See Also