public override void Generate(DropIndexOperation operation, IModel model, SqlBatchBuilder builder) { Check.NotNull(operation, nameof(operation)); Check.NotNull(builder, nameof(builder)); builder .Append("DROP INDEX ") .Append(_sql.DelimitIdentifier(operation.Name)); }
public virtual void Generate( [NotNull] AddColumnOperation operation, [CanBeNull] IModel model, [NotNull] SqlBatchBuilder builder) { Check.NotNull(operation, nameof(operation)); Check.NotNull(builder, nameof(builder)); builder .Append("ALTER TABLE ") .Append(_sql.DelimitIdentifier(operation.Table, operation.Schema)) .Append(" ADD "); ColumnDefinition(operation, model, builder); }