Пример #1
0
        public void CreateIndex(string indexName, params string[] columnNames)
        {
            var command = new AddIndexCommand(Name, indexName, columnNames);

            TableCommands.Add(command);
        }
Пример #2
0
 public virtual void Run(StringBuilder builder, AddIndexCommand command)
 {
     builder.AppendFormat("create index {1} on {0} ({2}) ",
         _dialect.QuoteForTableName(command.TableName),
         _dialect.QuoteForColumnName(command.IndexName),
         String.Join(", ", command.ColumnNames));
 }