Creating a Bidirectional Association

This section will assist you to create bidirectional associations.

Context

To create a bidirectional association proceed as follows:

Procedure

  1. Create two entity types as mentioned in the Creating an Entity Type section.
  2. Select the Bidirectional object under Associations.

    Mountain View

    Once Bidirectional 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 to create a bidirectional association and drag the mouse to the destination entity type.
    Note The destination OData Model Element cannot be a complex type, function import. The cursor icon changes for invalid destination OData Model Element.
    The association is created and a line with an arrow at both the ends connects the shapes.
  4. Create multiple bidirectional association as required.
  5. Choose the Select Icon in the Pallete 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 or by pressing F2. Every navigation property should have a unique name.

    On saving the project, the tree region populates the Entity Types, new Association and the corresponding Navigation Properties.