Share via


How to: Add a Domain Relationship (DSL Explorer)

You use domain relationships to establish relationships among domain classes within a domain-specific language definition. You can create domain relationships from the Dsl node in DSL Explorer. For more information about domain relationships, see Embedding and Reference Domain Relationship (Domain-Specific Language Designer) and Domain Relationships Overview.

You can also add domain properties to a domain relationship. For more information, see How to: Add a Domain Property.

To add a domain relationship using DSL Explorer

  1. In DSL Explorer, right-click the Dsl node, and click Add New Domain Relationship.

    The Pick DomainRelationship role player types dialog box appears.

  2. In the Source role player list, click the domain class to use as the source role.

  3. In the Target role player list, click the domain class to use as the target role.

  4. Do one of the following:

    1. To create an embedding relationship, select the Is relationship an embedding check box.

    2. To create a reference relationship, make sure that the Is relationship an embedding check box is cleared.

  5. Click OK.

    The domain relationship is added to the Domain Relationships node in DSL Explorer and is also reflected on the diagram.

See Also

Concepts

Defining the Domain-Specific Language in Domain-Specific Language Explorer

How to: Add an Embedding Relationship to a Domain-Specific Language Definition

How to: Add a Reference Relationship to a Domain-Specific Language Definition

Domain-Specific Language Tools Glossary