示例#1
0
        public override void Run(IAlterProcessor proc, DbDiffOptions opts)
        {
            var newtbl = new TableStructure(ParentTable);
            var dbs    = new DatabaseStructure();

            dbs.Tables.Add(newtbl);
            foreach (var op in AlterTableOps)
            {
                op.Run(dbs, opts);
            }
            proc.RecreateTable(ParentTable, newtbl);
            opts.AlterLogger.Info(Texts.Get("s_recreated$table", "table", ParentTable.FullName));
        }
示例#2
0
        public override void Run(IAlterProcessor proc, DbDiffOptions opts)
        {
            var newtbl = ParentTable.CloneTable();
            var dbs    = new DatabaseInfo();

            dbs.Tables.Add(newtbl);
            foreach (var op in AlterTableOps)
            {
                op.Run(new DatabaseInfoAlterProcessor(dbs), opts);
            }
            proc.RecreateTable(ParentTable, newtbl);
            opts.AlterLogger.Info(String.Format("Recreated table {0}", ParentTable.FullName));
        }
示例#3
0
 public override void Run(IAlterProcessor proc, DbDiffOptions opts)
 {
     var newtbl = ParentTable.CloneTable();
     var dbs = new DatabaseInfo();
     dbs.Tables.Add(newtbl);
     foreach (var op in AlterTableOps)
     {
         op.Run(new DatabaseInfoAlterProcessor(dbs), opts);
     }
     proc.RecreateTable(ParentTable, newtbl);
     opts.AlterLogger.Info(String.Format("Recreated table {0}", ParentTable.FullName));
 }