Esempio n. 1
0
        private static string CreateDatabase(string dbNameInVcs)
        {
            var disposableDbServer = ConnectionHelper.Connect(DisposableDbHostname, DisposableDbConnString);

            var disposableDbCreator = new DisposableDbManager(DbCreationPath, disposableDbServer, dbNameInVcs);

            string disposableDbName = disposableDbCreator.CreateCompleteDisposableDb();
            Console.WriteLine(disposableDbName);
            return disposableDbName;
        }
Esempio n. 2
0
        private static string CreateDatabase(string dbNameInVcs,string fixedDatabaseName)
        {
            var disposableDbServer = ConnectionHelper.Connect(DisposableDbHostname, DisposableDbConnString);

            var disposableDbCreator = new DisposableDbManager(DbCreationPath, disposableDbServer, dbNameInVcs);
            if(!String.IsNullOrEmpty(fixedDatabaseName))
            {
                DisposableDbManager.KillDb(disposableDbServer,fixedDatabaseName);
                disposableDbCreator.FixedDatabaseName = fixedDatabaseName;
            }

            string disposableDbName = disposableDbCreator.CreateCompleteDisposableDb();
            Console.WriteLine(disposableDbName);
            return disposableDbName;
        }