InheritanceAttribute Class
Identifies an entity class as the root of an inheritance hierarchy and specifies the persistence strategy to use for that hierarchy.
Remarks
Apply this attribute to the topmost (ancestor) class of an entity hierarchy.
Supported strategies are: TInheritanceStrategy.SingleTable - all classes in the hierarchy are stored in a single table; also add DiscriminatorColumn to the base class and DiscriminatorValue to each descendant.
TInheritanceStrategy.JoinedTables - each class has its own table linked by a foreign key; also add Table and PrimaryJoinColumn to each descendant.
Syntax
Unit: Aurelius.Mapping.Attributes
InheritanceAttribute = class(TCustomAttribute);
Constructors
| Name | Description |
|---|---|
| Create | Creates an InheritanceAttribute with the specified persistence strategy. |
Properties
| Name | Description |
|---|---|
| Strategy | Gets or sets the inheritance strategy used for the class hierarchy. |