private void GenerateUndoChangeScripts(ChangeScriptRepository repository, int lastChangeToApply, List<int> appliedChanges)
 {
     ChangeScriptExecuter undoScriptExecuter = new ChangeScriptExecuter(undoOutputPrintStream, dbmsSyntax, useTransaction);
     Controller undoController = new Controller(schemaManager, repository, undoScriptExecuter, infoPrintStream);
     undoController.ProcessUndoChangeScripts(lastChangeToApply, appliedChanges);
     undoOutputPrintStream.Flush();
 }
示例#2
0
 public Controller(DatabaseSchemaVersionManager schemaManager,
                   ChangeScriptRepository changeScriptRepository,
                   ChangeScriptExecuter changeScriptExecuter)
 {
     this.schemaManager = schemaManager;
     this.changeScriptRepository = changeScriptRepository;
     this.changeScriptExecuter = changeScriptExecuter;
 }
        private void GenerateUndoChangeScripts(ChangeScriptRepository repository, Int64 lastChangeToApply, List <Int64> appliedChanges)
        {
            ChangeScriptExecuter undoScriptExecuter = new ChangeScriptExecuter(undoOutputPrintStream, dbmsSyntax, useTransaction);
            Controller           undoController     = new Controller(schemaManager, repository, undoScriptExecuter);

            undoController.ProcessUndoChangeScripts(lastChangeToApply, appliedChanges);
            undoOutputPrintStream.Flush();
        }
示例#4
0
 public Controller(DatabaseSchemaVersionManager schemaManager,
                   ChangeScriptRepository changeScriptRepository,
                   ChangeScriptExecuter changeScriptExecuter)
 {
     this.schemaManager          = schemaManager;
     this.changeScriptRepository = changeScriptRepository;
     this.changeScriptExecuter   = changeScriptExecuter;
 }