Table of Contents

TCriteria.CreateAlias Method

Overloads

TCriteria.CreateAlias(string, string)

Creates an alias for an association path, enabling the alias to be used in projections and criteria expressions.

Syntax

Unit: Aurelius.Criteria.Base

function TCriteria.CreateAlias(AAssociationPath: string; AAlias: string): TCriteria; overload;

Parameters

<-> Parameter Type Description
AAssociationPath string The dot-notation path to the association (e.g., 'Customer' or 'Customer.Address').
AAlias string The alias name to assign to the association path.

Returns

The current criteria instance to allow method chaining.

See also

TCriteria.CreateAlias(string, string, TFetchMode)

Creates an alias for an association path with a specified fetch mode.

Syntax

Unit: Aurelius.Criteria.Base

function TCriteria.CreateAlias(AAssociationPath: string; AAlias: string; AFetchMode: TFetchMode): TCriteria; overload;

Parameters

<-> Parameter Type Description
AAssociationPath string The dot-notation path to the association.
AAlias string The alias name to assign to the association path.
AFetchMode TFetchMode The fetch mode for loading the association.

Returns

The current criteria instance to allow method chaining.

See also