Freigeben über


Embedding and Reference Domain Relationship (Domain-Specific Language Designer)

You use domain relationships to establish relationships among domain classes in a domain-specific language definition. You can create an embedding relationship or a reference relationship in the Domain-Specific Language Designer by using the embedding or reference relationship item in the Toolbox. An embedding relationship appears as a solid line in the diagram, and a reference relationship appears as a dashed line. For more information, see Overview of Domain Relationships, How to: Add an Embedding Relationship to a Domain-Specific Language Definition, How to: Add a Reference Relationship to a Domain-Specific Language Definition, and How to: Add a Domain Relationship (DSL Explorer).

The properties in the following table are associated with an embedding relationship:

Property

Description

Default

Access Modifier

Determines if the access modifier for the domain relationship is public or internal.

public

Custom Attributes

Used to attribute the code generated from this element.

Note   Use the browse button to add an attribute.

For more information, see How to: Edit Attributes on a Diagram Element.

Generates Double Derived

If True, will generate both a base class with all functionality and a partial class to support customization through overrides.

False

Has Custom Constructor

If True, indicates that a custom constructor will be provided in code.

False

Inheritance Modifier

Determines if the inheritance modifier of the .Net class generated from the domain class is none, abstract or sealed.

None

Allows Duplicates

If True, permits duplicate links of this domain relationship to be created between the same two elements.

False

Base Relationships

The base relationship of this domain relationship.

Is Embedding

Indicates whether the relationship is an embedding or reference relationship.

Note. Always true for embedding relationships, always false for reference relationships.

Name

The name of this element.

Current name

Namespace

The namespace affiliated with this domain class.

Current namespace

Notes

Informal notes associated with this element.

Description

Used to document code and in the UI of the generated designer.

Display Name

The name that will be displayed in the generated designer for this element.

Help Keyword

The optional keyword used to index F1 help for this element.

See Also

Concepts

Element Reference for Domain-Specific Languages

Domain-Specific Language Designer Terminology Overview

Domain-Specific Language Tools Glossary