public void Change(string key) { ConnectionProvidersSection serviceproviders = System.Configuration.ConfigurationManager.GetSection("ConnectionProviders") as ConnectionProvidersSection; current = serviceproviders.Providers.GetElementByKey(key); }
public ConnectionElement GetConnection(string key) { ConnectionProvidersSection serviceproviders = System.Configuration.ConfigurationManager.GetSection("ConnectionProviders") as ConnectionProvidersSection; return(serviceproviders.Providers.GetElementByKey(key)); }