Relations in X++
There are four types of relations:
1. Normal Relation.
2. Field Fixed Relation.
3. Related Field Fixed Relation.
4. ForeignKey Relation.
Normal Relation:
Normal Relation is to specify relation fields without conditions.
Field Fixed Relation:
- Field fixed Relation is to specify relation fields to restrict the records in the primary table(Parent Table).
- Only the records that meet the condition are selected.
- The field fixed is normally an enum.
Example:
Field Fixed :- Table.Field == <EnumValue>
Related Field Fixed Relation:
- Related field fixed to specify relation fields that restrict the records in the related table.
- Only the records that meet the condition are selected.
- The field fixed is normally an enum.
Example:
Related field fixed :- (<EnumValue> == Table.Field)
ForeignKey Relation:
- ForeignKey to specify a correspondence between a foreign key field in the present table to the primary key field in another parent table.
Comments
Post a Comment