Commerce > Administration > System settings > Adding a 1-to-many relation

Adding a one-to-many relationship

This topic is intended for administrators and developers with administration access rights in Episerver.

You can relate business objects with a one-to-many (1:N) relationships. For example, if you have one organization, you can relate many types of data to that organization, such as multiple contacts, addresses, or organizational units or divisions within an organization. Within a 1:N relationship, the business object you selected will be 1.

In the following example, 1 = Organization and N = Related Objects such as Address, Contact, CreditCard and so on.

To add a one-to-many relationship to a business object, you need to create a new business object or use an existing one.

  1. On the Business Object Customization page, click 1:N Relations.

  2. Click New Relation "one to many" to create a new relation.

  3. Fill in the Relation 1:N dialog box.
  4. Click Save.

The Related Object has the Primary Object appear under the opposite relationship (N:1) on its configuration form. For example, if Organization is the Primary Object and the Related Object is Address, the relationship is automatically generated under the N:1 tab in Address.

back to top




Episerver User Guide update 16-2 | Released: 2016-03-31 | © Episerver 2016 | Send feedback to us