public string GetConnectionConfigDbName(string name) { var dbConnectionConfig = FindOrThrowIfDoesNotExist(name); var dbConnectionParser = new DbConnectionParser(dbConnectionConfig); var dbConnectionConfigValues = dbConnectionParser.ParseConnectionString(); return(dbConnectionConfigValues["Database"]); }
public IDbConnectionConfig GetMasterConnectionConfig(string name) { var dbConnectionConfig = FindOrThrowIfDoesNotExist(name); var dbConnectionParser = new DbConnectionParser(dbConnectionConfig); var dbConnectionConfigValues = dbConnectionParser.ParseConnectionString(); dbConnectionConfigValues["Database"] = "master"; var masterDbConnectionConfig = dbConnectionParser.ParseConnectionConfig(dbConnectionConfigValues); return(masterDbConnectionConfig); }