Creating a Single Association

Context

To define single association proceed as follows:

Procedure

  1. Create entity types as detailed in the Creating an Entity Type section.
  2. Select the menu under Associations.
    Once Single is selected and on moving the mouse pointer into the OData Model Editor, the mouse pointer changes its shape indicating that the association creation mode in active.

  3. Click in the source entity type shape to create an association and drag the mouse to the destination shape.

    Once on the destination entity shape, left click the mouse to complete the creation of the association.

    The association is created and a dotted arrow line connects the shapes.

  4. Choose in the Palette to come out of the association create mode.
    • Press escape from the keyboard to come out of the association create mode.

    Note A Navigation Property is automatically created for the new association. You can rename the navigation property by double clicking on it. Every navigation propery should have a unique name.

    The association is created and an arrow with a singe head appears representing the single association. Also the cardinality is displayed on both ends of the arrow implying the relationship one-to-many (star sign represent many).

  5. On saving the project, the tree region displays the entity types, new association and the corresponding navigation property.

    Mountain View

    Note Association Sets, Referential Constraints and the soruce and target roles are automatically created on creation of an association.