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(); }
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(); }