Exemplo n.º 1
0
        public static SqlPreCommand DropTable(DiffTable diffTable)
        {
            if (diffTable.TemporalTableName == null)
            {
                return(DropTable(diffTable.Name));
            }

            return(SqlPreCommandConcat.Combine(Spacing.Simple,
                                               AlterTableDisableSystemVersioning(diffTable.Name),
                                               DropTable(diffTable.Name)
                                               //DropTable(diffTable.TemporalTableName)
                                               ) !);
        }
Exemplo n.º 2
0
        public static void TotalGeneration()
        {
            foreach (var db in Schema.Current.DatabaseNames())
            {
                Connector.Current.CleanDatabase(db);
            }

            SqlPreCommandConcat totalScript = (SqlPreCommandConcat)Schema.Current.GenerationScipt();

            foreach (SqlPreCommand command in totalScript.Commands)
            {
                command.ExecuteLeaves();
            }
        }