Skip to content

IndexAttribute Class ​

Definition ​

Declares a non-primary-key index for schema generation and reconciliation.

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Constructors ​

NameDescription
IndexAttribute(string[] columns)Declares an index. When applied to a property with no columns, the property column is used.

Properties ​

NameDescription
ColumnsKey columns (property or column names), in order.
CommentOptional SQL comment / description for the index.
ExcludeNullsWhen , CREATE INDEX adds IS NOT NULL predicates for key columns
FillFactorFill factor percentage (1–100). Zero means unspecified.
FilterPredicateFilter / partial-index predicate without the WHERE keyword.
IncludeComma-separated include / covering columns (non-key).
IsClusteredWhen , requests a clustered index (SQL Server). Ignored on PostgreSQL.
IsUniqueWhen , creates a unique index.
NameOptional index name. When null or empty, a default idx_{table}_{columns} name is generated.

Remarks ​

Apply to a property for a single-column index, or to the class with explicit column names for composite indexes. Populates Indexes; primary keys continue to use PrimaryKeyAttribute.