How to: Add a Domain Class (DSL Explorer)
You add and define domain classes in a domain-specific language definition to represent classes in a domain-specific language. For more information about domain classes, see Domain Class and Named Domain Class (Domain-Specific Language Designer).
After you add domain classes to your domain-specific language definition, you might want to establish domain relationships among them. For more information, see How to: Add a Domain Relationship (DSL 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, and How to: Add Inheritance to a Definition.
You will also need to map the domain class to a shape, such as a geometry or image shape, to establish how the domain class will appear in the generated designer. For more information, see Defining Diagram Elements, How to: Map Elements By Using the Diagram Element Map Tool, and Modifying Diagram Settings in Domain-Specific Language Explorer.
To add a domain class by using DSL Explorer
In DSL Explorer, right-click the Dsl node, and click Add New Doman Class.
A domain class named DomainClass1 is created in the domain-specific language definition under the Classes and Relationships swimlane.
If appropriate, add domain properties to the domain class. For more information, see How to: Add a Domain Property.
In the Properties window, set the properties for the domain class. For more information, see Domain Class and Named Domain Class (Domain-Specific Language Designer).
See Also
Concepts
Defining Classes and Relationships
Domain-Specific Language Designer Terminology Overview
Walkthrough: Creating a Domain-Specific Language Solution
How to: Add a Domain Class to a Domain-Specific Language Definition