Ejemplo n.º 1
0
        public SchemaBuilder AlterTable(string name, Action <AlterTableCommand> table = null)
        {
            var alterTable = new AlterTableCommand(name);

            if (table != null)
            {
                table(alterTable);
            }
            Run(alterTable);
            return(this);
        }
Ejemplo n.º 2
0
 public void Visit(AlterTableCommand command)
 {
     foreach (var columnCommand in command.TableCommands)
     {
         Visit(columnCommand);
     }
     foreach (var indexCommand in command.IndexCommands.Values)
     {
         Visit(indexCommand);
     }
     _app.SetStatusBarSucess(string.Format("Tabela {0} alterada com sucesso.", command.Name));
 }
Ejemplo n.º 3
0
 protected void Run(AlterTableCommand command)
 {
     _interpreter.Visit(command);
 }