Domain Class and Named Domain Class (Domain-Specific Language Designer)
You add and define domain classes in a domain-specific language definition to represent classes in a domain-specific language. Named domain classes differ from domain classes in that named domain classes additionally have a Name property added to them. The Name property also has XML serialization data set that will be used as a moniker. For information about how to add domain classes, see How to: Add a Domain Class to a Domain-Specific Language Definition, How to: Add a Named Domain Class to a Domain-Specific Language Definition, and How to: Add a Domain Class (DSL Explorer).
Domain classes and named domain classes have the properties in the following table:
Property |
Description |
Default |
---|---|---|
Access Modifier |
Determines if the access modifier for the domain class 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. For more information, see Designating Overridable Classes. |
False |
Has Custom Constructor |
If True, indicates that a custom constructor will be provided in code. For more information, see Providing Custom Constructors. |
False |
Inheritance Modifier |
Determines if the inheritance modifier of the .Net class generated from the domain class is none, abstract or sealed. |
none |
Base Class |
The base class of this domain class. |
(none) |
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. |
Domain classes define domain properties that are associated with them. As the following illustration shows, domain classes can have none, one, or several domain properties of various types that are associated with them.
Domain Class with Sample Domain Properties
For information about how to add domain properties and what types of properties are available, see How to: Add a Domain Property.
See Also
Concepts
Element Reference for Domain-Specific Languages