Exemplo n.º 1
0
        public void Change(string key)
        {
            ConnectionProvidersSection serviceproviders = System.Configuration.ConfigurationManager.GetSection("ConnectionProviders") as ConnectionProvidersSection;

            current = serviceproviders.Providers.GetElementByKey(key);
        }
Exemplo n.º 2
0
        public ConnectionElement GetConnection(string key)
        {
            ConnectionProvidersSection serviceproviders = System.Configuration.ConfigurationManager.GetSection("ConnectionProviders") as ConnectionProvidersSection;

            return(serviceproviders.Providers.GetElementByKey(key));
        }