예제 #1
0
        private void CreateDatabase()
        {
            var masterConn   = ConnectionUtil.GetMasterConnectionString();
            var databaseName = ConnectionUtil.GetDatabaseName();

            using (var connection = ConnectionUtil.CreateConnection(masterConn))
            {
                connection.Execute($@"
DROP DATABASE IF EXISTS ""{databaseName}"";
CREATE DATABASE ""{databaseName}"";");
            }
        }
예제 #2
0
 public SqlServerStorageTest()
 {
     _dbName = ConnectionUtil.GetDatabaseName();
     _masterDbConnectionString = ConnectionUtil.GetMasterConnectionString();
     _dbConnectionString       = ConnectionUtil.GetConnectionString();
 }
예제 #3
0
 public SqlServerStorageTest()
 {
     _masterDbConnectionString = ConnectionUtil.GetMasterConnectionString();
     _dbConnectionString       = ConnectionUtil.GetConnectionString();
 }