public static void ChangeDatabase(this DbContext source, DBConnectionConfig connection) { ChangeDatabase(source, connection.InitialCatalog, connection.DataSource, connection.UserId, connection.Password, connection.IntegratedSecuity, connection.ConfigConnectionStringName); }
// An empty constructor is needed by the config loader. // Set defaults here incase they aren't specified in the xml. public SiteConfig() { AlumniEnabled = true; SalaryEnabled = true; HousingEnabled = true; TwitterFeedEnabled = false; TwitterUser = ""; TwitterWidgetID = ""; JobsDBConnection = new DBConnectionConfig(); AlumniDBConnection = new DBConnectionConfig(); SalaryDBConnection = new DBConnectionConfig(); HousingDBConnection = new DBConnectionConfig(); UniversityLogo = ""; UniversityThemeCSSFile = ""; BannerTopColor = ""; BannerBottomColor = ""; FilterEnabledTopColor = ""; FilterEnabledBottomColor = ""; FilterDisabledTopColor = ""; FilterDisabledBottomColor = ""; }