Beispiel #1
0
        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));
        }
Beispiel #2
0
        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);
        }