Table of Contents

IdAttribute.Create Constructor

Overloads

IdAttribute.Create(string, TIdGenerator)

Creates an IdAttribute specifying the member name and a built-in generator.

Syntax

Unit: Aurelius.Mapping.Attributes

constructor IdAttribute.Create(const AMemberName: string; AGenerator: TIdGenerator);

Parameters

<-> Parameter Type Description
const AMemberName string The name of the field or property that holds the identifier value.
AGenerator TIdGenerator Specifies how the identifier value is generated (e.g., TIdGenerator.IdentityOrSequence, TIdGenerator.Guid, TIdGenerator.None).

See also

IdAttribute.Create(string, TGeneratorClass)

Creates an IdAttribute specifying the member name and a custom generator class.

Syntax

Unit: Aurelius.Mapping.Attributes

constructor IdAttribute.Create(const AMemberName: string; AGeneratorClass: TGeneratorClass);

Parameters

<-> Parameter Type Description
const AMemberName string The name of the field or property that holds the identifier value.
AGeneratorClass TGeneratorClass A custom generator class used to produce identifier values.

See also