Ejemplo n.º 1
0
 public RoundhousETask(DbConnectionInfo connectionInfo, string scriptsLocation, string environmentName, RoundhousEMode roundhouseMode, DatabaseRecoveryMode recoveryMode, string restorePath, int restoreTimeout, string restoreCustomOptions, string repositoryPath, string versionFile, string versionXPath, int commandTimeout, int commandTimeoutAdmin, string functionsFolderName, string sprocsFolderName, string viewsFolderName, string upFolderName, string versionTable, string scriptsRunTable, string scriptsRunErrorTable, bool? warnOnOneTimeScriptChanges, string outputPath, 
     string alterDatabaseFolderName, string runAfterCreateDatabaseFolderName, string runBeforeUpFolderName, string runFirstAfterUpFolderName, string indexesFolderName, string runAfterOtherAnyTimeScriptsFolderName, string permissionsFolderName)
 {
     _connectionInfo = connectionInfo;
     _scriptsLocation = scriptsLocation;
     _environmentName = environmentName;
     _recoveryMode = recoveryMode;
     _roundhouseMode = roundhouseMode;
     _restorePath = restorePath;
     _restoreTimeout = restoreTimeout;
     _restoreCustomOptions = restoreCustomOptions;
     _repositoryPath = repositoryPath;
     _versionFile = versionFile;
     _versionXPath = versionXPath;
     _commandTimeout = commandTimeout;
     _commandTimeoutAdmin = commandTimeoutAdmin;
     _alterDatabaseFolderName = alterDatabaseFolderName;
     _runAfterCreateDatabaseFolderName = runAfterCreateDatabaseFolderName;
     _runBeforeUpFolderName = runBeforeUpFolderName;
     _upFolderName = upFolderName;
     _runFirstAfterUpFolderName = runFirstAfterUpFolderName;
     _functionsFolderName = functionsFolderName;
     _viewsFolderName = viewsFolderName;
     _sprocsFolderName = sprocsFolderName;
     _indexesFolderName = indexesFolderName;
     _runAfterOtherAnyTimeScriptsFolderName = runAfterOtherAnyTimeScriptsFolderName;
     _permissionsFolderName = permissionsFolderName;
     _versionTable = versionTable;
     _scriptsRunTable = scriptsRunTable;
     _scriptsRunErrorTable = scriptsRunErrorTable;
     _warnOnOneTimeScriptChanges = warnOnOneTimeScriptChanges;
     _outputPath = outputPath;
 }
Ejemplo n.º 2
0
 public RoundhousETask(DbConnectionInfo connectionInfo, string scriptsLocation, string environmentName, RoundhousEMode roundhouseMode, DatabaseRecoveryMode recoveryMode, string restorePath, int restoreTimeout, string restoreCustomOptions, string repositoryPath, string versionFile, string versionXPath, int commandTimeout, int commandTimeoutAdmin, string functionsFolderName, string sprocsFolderName, string viewsFolderName, string upFolderName, string versionTable, string scriptsRunTable, string scriptsRunErrorTable, bool?warnOnOneTimeScriptChanges, string outputPath)
 {
     _connectionInfo             = connectionInfo;
     _scriptsLocation            = scriptsLocation;
     _environmentName            = environmentName;
     _recoveryMode               = recoveryMode;
     _roundhouseMode             = roundhouseMode;
     _restorePath                = restorePath;
     _restoreTimeout             = restoreTimeout;
     _restoreCustomOptions       = restoreCustomOptions;
     _repositoryPath             = repositoryPath;
     _versionFile                = versionFile;
     _versionXPath               = versionXPath;
     _commandTimeout             = commandTimeout;
     _commandTimeoutAdmin        = commandTimeoutAdmin;
     _functionsFolderName        = functionsFolderName;
     _sprocsFolderName           = sprocsFolderName;
     _viewsFolderName            = viewsFolderName;
     _upFolderName               = upFolderName;
     _versionTable               = versionTable;
     _scriptsRunTable            = scriptsRunTable;
     _scriptsRunErrorTable       = scriptsRunErrorTable;
     _warnOnOneTimeScriptChanges = warnOnOneTimeScriptChanges;
     _outputPath = outputPath;
 }
Ejemplo n.º 3
0
        public void TestRoundhousE()
        {
            var connection = new DbConnectionInfo{
                Server = "(local)",
                DatabaseName = "TestRoundhouse"
            };
            var task = new RoundhousETask(connection,
                                          @"C:\Solutions\roundhouse\code_drop\sample\db\SQLServer\TestRoundhousE", "TEST",
                                          RoundhousEMode.DropCreate,DatabaseRecoveryMode.Simple,string.Empty,0,string.Empty,"git://somehwere","","",0,0, "", "", "", "", "", "", "", "", null, "", "", null);
            DeploymentResult results = task.Execute();

            System.Console.WriteLine(results);
            Assert.IsFalse(results.ContainsError());
        }