Ejemplo n.º 1
0
        public virtual IEnumerable<string> Run(DropForeignKeyCommand command)
        {
            var builder = new StringBuilder();

            builder.Append("alter table ")
                .Append(_dialect.QuoteForTableName(command.SrcTable))
                .Append(_dialect.GetDropForeignKeyConstraintString(command.Name));
            yield return builder.ToString();
        }
Ejemplo n.º 2
0
 public override IEnumerable<string> Run(DropForeignKeyCommand command)
 {
     yield break;
 }
Ejemplo n.º 3
0
 public SchemaBuilder DropForeignKey(string srcTable, string name)
 {
     var command = new DropForeignKeyCommand(FormatTable(srcTable), name);
     Execute(_builder.CreateSql(command));
     return this;
 }