Table of Contents

DBIndexAttribute Class

Defines a non-unique database index on one or more columns of the entity's table.

Remarks

Use DBIndex to create a non-exclusive index that improves query performance. For unique indexes use UniqueKey instead.

Syntax

Unit: Aurelius.Mapping.Attributes

DBIndexAttribute = class(TCustomAttribute);

Constructors

Name Description
Create Creates a DBIndexAttribute with the specified index name and columns.

Properties

Name Description
Columns Gets or sets the list of column names that compose the index.
Name Gets or sets the name of the database index.