Exemplo n.º 1
0
 public override void Run(StringBuilder builder, IRenameColumnCommand command)
 {
     builder.AppendFormat("EXEC sp_RENAME {0}, {1}, 'COLUMN'",
                          _dialect.GetSqlValue(command.Name + "." + command.ColumnName),
                          _dialect.GetSqlValue(command.NewColumnName)
                          );
 }
Exemplo n.º 2
0
 public virtual void Run(StringBuilder builder, IRenameColumnCommand command)
 {
     builder.AppendFormat("alter table {0} rename column {1} to {2}",
                          _dialect.QuoteForTableName(command.Name),
                          _dialect.QuoteForColumnName(command.ColumnName),
                          _dialect.QuoteForColumnName(command.NewColumnName)
                          );
 }