EntLib 5.0 What happened to DatabaseConfigurationView? RRS feed

  • Question

  • User-879216147 posted

    I've been using the DatabaseConfigurationView and FileConfigurationSource classes to read connection strings from a separate file than app/web.config.  I moved to 5.0 and the DatabaseConfigurationView class seems to have been taken away and I haven't been able to find a replacement to reimplement my functionality.  Any help?

    Monday, May 3, 2010 2:34 PM

All replies

  • User1826226228 posted

    I need the answer for this question as well.. I have upgraded the EnterpriseLibrary to 5.0 and i have the following piece of code that doesn't build anymore.. what's the equivalent for that?

     DatabaseConfigurationView dcv = new DatabaseConfigurationView(new ConfigurationContext(AppDomain.CurrentDomain.BaseDirectory + "Config\\dataConfiguration.config"));
     InstanceDataCollection idc = dcv.GetDatabaseSettings().Instances;

    Friday, June 22, 2012 10:38 AM