To create a new one-to-many relationship, you edit your solution, select the entity, click on the Relationships tab, click on + New relationship, and, from the drop-down list, select One-to-many, as shown in the following screenshot:
Figure 3.11 – Add relationship
A pane will open on the right-hand side, as shown in the following screenshot:
Figure 3.12 – Select related entity
The current entity is shown as the One end of the relationship. When creating a relationship, specify the following fields:
- Related (Many): The entity you wish to create the relationship to.
- Lookup field display name: This will default to the name of the current entity.
- Lookup field name: This is the internal name used for the lookup field. It will have the publisher's prefix.
To create the relationship, click on Done.
After creating the relationship, navigate to the entity you selected as Related and verify...