Appearance
IndexAttribute Class
Definition
Declares a non-primary-key index for schema generation and reconciliation.
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Constructors
| Name | Description |
|---|---|
IndexAttribute(string[] columns) | Declares an index. When applied to a property with no columns, the property column is used. |
Properties
| Name | Description |
|---|---|
Columns | Key columns (property or column names), in order. |
Comment | Optional SQL comment / description for the index. |
ExcludeNulls | When , CREATE INDEX adds IS NOT NULL predicates for key columns |
FillFactor | Fill factor percentage (1–100). Zero means unspecified. |
FilterPredicate | Filter / partial-index predicate without the WHERE keyword. |
Include | Comma-separated include / covering columns (non-key). |
IsClustered | When , requests a clustered index (SQL Server). Ignored on PostgreSQL. |
IsUnique | When , creates a unique index. |
Name | Optional 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.