DiscriminatorColumnAttribute.Create Constructor
Overloads
- DiscriminatorColumnAttribute.Create(string, TDiscriminatorType)
- DiscriminatorColumnAttribute.Create(string, TDiscriminatorType, Integer)
DiscriminatorColumnAttribute.Create(string, TDiscriminatorType)
Creates a DiscriminatorColumnAttribute with the specified column name and discriminator type.
Syntax
Unit: Aurelius.Mapping.Attributes
constructor DiscriminatorColumnAttribute.Create(const Name: string; DiscriminatorType: TDiscriminatorType);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | Name | string | The name of the discriminator column in the database table. |
| DiscriminatorType | TDiscriminatorType | The data type of discriminator values (dtString or dtInteger). |
See also
DiscriminatorColumnAttribute.Create(string, TDiscriminatorType, Integer)
Creates a DiscriminatorColumnAttribute with an explicit column length.
Syntax
Unit: Aurelius.Mapping.Attributes
constructor DiscriminatorColumnAttribute.Create(const Name: string; DiscriminatorType: TDiscriminatorType; Length: Integer);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | Name | string | The name of the discriminator column in the database table. |
| DiscriminatorType | TDiscriminatorType | The data type of discriminator values. | |
| Length | Integer | The length of the string column. Only relevant when DiscriminatorType is dtString. |