private static string GetServerLocation(List <DictionaryEntry> Ls) { string provider = GetDBProvider(Ls); string serverLocation = GetDefaultServerLocation(TestDatabaseProviders.GetProvider(provider)); return(serverLocation); }
private static TestDatabaseProviderInfo GetDefaultDBProvider() { // if Environment variable DB provider is defined, default DB provider == %DBProvider% // Default DB Provider is SQL2005 string result = SafeGetEnvironmentVariableOrDefault("DbProvider", "SQL2005"); return(TestDatabaseProviders.GetProvider(result)); }
public static string GetDefaultServerLocation(string providerName) { return(TestDatabaseProviders.GetProvider(providerName).Location); }
private static string GetDBConnectionStringNoCreate(string dbName, List <DictionaryEntry> Ls) { try { string NewDBName = GetNewDBName(dbName); return("Server=" + GetServerLocation(Ls) + ";Database=" + NewDBName + ";" + TestDatabaseProviders.GetProvider(GetDBProvider(Ls)).Credentials); } catch (Exception ex) { Console.WriteLine(ex.Message); throw; } }
public static string GetDefaultServerDataFilePath(string providerName) { return(TestDatabaseProviders.GetProvider(providerName).DataFilePath); }
public static string GetDefaultServerCredentials(string providerName) { return(TestDatabaseProviders.GetProvider(providerName).Credentials); }