public SchemaBuilder CreateForeignKey(string name, string srcModule, string srcTable, string[] srcColumns, string destModule, string destTable, string[] destColumns)
        {
            var command = new CreateForeignKeyCommand(name, String.Concat(_formatPrefix(srcModule), srcTable), srcColumns, String.Concat(_formatPrefix(destModule), destTable), destColumns);

            Run(command);
            return(this);
        }
 public void Visit(CreateForeignKeyCommand command) {
 }
 public override void Visit(CreateForeignKeyCommand command) {
     _output.WriteLine("Creating foreign key {0}", command.Name);
 }
Beispiel #4
0
 public SchemaBuilder CreateForeignKey(string name, string srcModule, string srcTable, string[] srcColumns, string destModule, string destTable, string[] destColumns) {
     var command = new CreateForeignKeyCommand(name, String.Concat(_formatPrefix(srcModule), srcTable), srcColumns, String.Concat(_formatPrefix(destModule), destTable), destColumns);
     Run(command);
     return this;
 }
 public abstract void Visit(CreateForeignKeyCommand command);