public static CreateIndex ( |
||
connDesc | The database connection descriptor. This is used both as /// a key for caching connections/commands as well as for /// getting the actual database connection the first time. | |
indexName | string | Name of the index to create. |
isUnique | bool | Is this a unique index? |
tableName | string | What table to create the index on. |
columnNames | IEnumerable |
The columns included in the index. |
return | void |
public static void CreateIndex(AbstractSqlConnectionDescriptor connDesc, string indexName, bool isUnique, string tableName,
IEnumerable<string> columnNames)
{
string sql = connDesc.MakeCreateIndexCommand(indexName, isUnique, tableName, columnNames);
XSafeCommand(connDesc, sql, null);
}
SqlConnectionUtilities::CreateIndex ( |