Associations

Associations are relationships between entities established on the basis of foreign keys. They are mapped as foreign keys to the database and can be generated automatically from the foreign keys when reverse engineering an existing database. On the diagram, associations are represented as dotted line connections with black arrows.

 

ExpandedToggleIcon        Creating and Editing Associations

To create an association, use the New Association Images_addAssaciations button on the Model toolbar or on the Model Explorer toolbar. Alternatively, you can right-click the diagram or class and select New Association from the Add submenu of the class shortcut menu. The Association Editor dialog will be displayed.

 

Images_AssociationEditorLC

 

In Association Editor, you should set parent and child classes and their association properties. You can also set relationship cardinality, enable or disable corresponding property generation for the parent and child class, as well as specify property visibility and inheritance modifier.

 

ExpandedToggleIcon        See Also


Send feedback on this topic

© 2008 - 2024 Devart. All rights reserved.