Table of Contents

EnumerationAttribute.Create Constructor

Overloads

EnumerationAttribute.Create(TEnumMappingType)

Creates an EnumerationAttribute using the specified mapping type without explicit mapped values.

Syntax

Unit: Aurelius.Mapping.Attributes

constructor EnumerationAttribute.Create(MappedType: TEnumMappingType);

Parameters

<-> Parameter Type Description
MappedType TEnumMappingType The storage type. Use emInteger to store ordinal values.

See also

EnumerationAttribute.Create(TEnumMappingType, string)

Creates an EnumerationAttribute with explicit mapped values for each enumerated constant.

Syntax

Unit: Aurelius.Mapping.Attributes

constructor EnumerationAttribute.Create(MappedType: TEnumMappingType; const MappedValues: string);

Parameters

<-> Parameter Type Description
MappedType TEnumMappingType The storage type (emChar or emString).
const MappedValues string A comma-separated list of database values corresponding to each enumerated constant, in declaration order. For emChar, each value must be a single uppercase letter.

See also