Skip to content

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 ​

NameDescription
columnsKey column names, in order.
commentOptional comment.
excludeNullsWhen , CREATE INDEX adds IS NOT NULL for each key column.
fillFactorFill factor; 0 means unspecified.
filterPredicateOptional filter predicate without WHERE.
includeColumnsOptional include columns.
isClusteredWhether the index is clustered (SQL Server).
isUniqueWhether the index is unique.
nameIndex name.
schemaSchema name.
tableNameTable name.

Returns ​

A new IndexInformation suitable for AddIndex.