DiscriminatorValueAttribute Class
Specifies the discriminator value that identifies a particular class in a single-table inheritance hierarchy.
Remarks
Apply this attribute to each concrete descendant class in a single-table inheritance hierarchy. Aurelius writes this value into the discriminator column when persisting an object of this class, and uses it to determine the correct class to instantiate when reading records. The value type must match the DiscrType declared in the DiscriminatorColumn attribute on the base class.
Syntax
Unit: Aurelius.Mapping.Attributes
DiscriminatorValueAttribute = class(TCustomAttribute);
Constructors
| Name | Description |
|---|---|
| Create | Overloaded Create(string) Create(Integer) |
Properties
| Name | Description |
|---|---|
| Value | Gets or sets the discriminator value for this class. |