A relationship is a specialized type of class, which defines how two classes related to one another. The example shown below is used for relating an Employee to a Company.

MDL_Programmer's_Guide-31-2-2g.jpg

As can be seen below, the relationship is contrainted and will only allow a single Company object to be related to an Employee, though will allow multiple Employee instances to be related to a Company.

MDL_Programmer's_Guide-31-2-2h.jpg

Once defined, the relationship can be assigned to the source and target classes.

MDL_Programmer's_Guide-31-2-2i.jpg

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.