private ConnectionManager() { // Generate a random db name DatabaseName = "monotest" + Guid.NewGuid().ToString().Substring(0, 7); sql = CreateSqlConfig(SqlEnvVar); if (sql != null) { CreateMssqlDatabase(); } #if !NO_ODBC odbc = CreateOdbcConfig(OdbcEnvVar); if (odbc != null) { CreateMysqlDatabase(); } #endif }
private ConnectionManager() { //Environment.SetEnvironmentVariable(OdbcEnvVar, @"Driver={MySQL ODBC 5.3 Unicode Driver};server=127.0.0.1;uid=sa;pwd=qwerty123;"; //Environment.SetEnvironmentVariable(SqlEnvVar, @"server=127.0.0.1;database=master;user id=sa;password=qwerty123"; // Generate a random db name DatabaseName = "monotest" + Guid.NewGuid().ToString().Substring(0, 7); sql = CreateSqlConfig(SqlEnvVar); if (sql != null) { CreateMssqlDatabase(); } #if !NO_ODBC odbc = CreateOdbcConfig(OdbcEnvVar); if (odbc != null) { CreateMysqlDatabase(); } #endif }