Skip to main content

DiscriminatorAttribute Class

Specifies a discriminator column value that uniquely identifies rows that correspond to an entity class in the ancestor’s table.

Declaration

DiscriminatorAttribute = class(
    TCustomAttribute
)

Remarks

Pass a value that corresponds to the column’s value type as the DiscriminatorAttribute‘s parameter. If not specified, the following value is used:

  • The class’s fully qualified name applies to a string type column;

  • The hash value calculated for the class’s fully qualified name applies to an Integer type column.

Refer to the InheritanceAttribute class description for an example on how to provide discriminator column values using the DiscriminatorAttribute.

Inheritance

TObject
TCustomAttribute
DiscriminatorAttribute
See Also