Appearance
Create Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
IndexInformation Create(string name, string tableName, string schema, IEnumerable<string> columns, bool isUnique = null, bool isClustered = null, IEnumerable<string> includeColumns = null, string filterPredicate = null, int fillFactor = null, string comment = null, bool excludeNulls = null)
csharp
IndexInformation Create(string name, string tableName, string schema, IEnumerable<string> columns, bool isUnique = null, bool isClustered = null, IEnumerable<string> includeColumns = null, string filterPredicate = null, int fillFactor = null, string comment = null, bool excludeNulls = null)Creates a schema-definition index (no runtime stats).
Parameters
| Name | Description |
|---|---|
columns | Key column names, in order. |
comment | Optional comment. |
excludeNulls | When , CREATE INDEX adds IS NOT NULL for each key column. |
fillFactor | Fill factor; 0 means unspecified. |
filterPredicate | Optional filter predicate without WHERE. |
includeColumns | Optional include columns. |
isClustered | Whether the index is clustered (SQL Server). |
isUnique | Whether the index is unique. |
name | Index name. |
schema | Schema name. |
tableName | Table name. |
Returns
A new IndexInformation suitable for AddIndex.