Method AddDbIndex
| Improve this Doc View SourceAddDbIndex(String, String, Boolean, Boolean, Boolean, Boolean, ColumnSort[])
Adds database index.
Declaration
protected void AddDbIndex(string name, string description, bool isUnique, bool isClustered, bool isValidOnTable, bool isValidOnTempTable, params ColumnSort[] orderByList)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the index. |
System.String | description | The description of the index. |
System.Boolean | isUnique | Specifies whether this index is unique. |
System.Boolean | isClustered | Specifies whether this index is clustered. |
System.Boolean | isValidOnTable | Specifies whether this index is for permanent table. |
System.Boolean | isValidOnTempTable | Specifies whether this index is for tempoary table. |
ColumnSort[] | orderByList | The columns and sorting order to make up this index. |