title: How to Read a Configuration Section from XML in a Database?
body: <p>I have a Config class like this:</p>
  
  <pre><code>public class MyConfig : ConfigurationSection
  {
          [ConfigurationProperty("MyProperty", IsRequired = true)]
          public string MyProperty
          {
              get { return (string)this["MyProperty"]; }
              set { this["MyProperty"] = value; }
          }
  }
  </code></pre>
  
  <p>And it is being instantiated by another class like this</p>
  
  <pre><code>(MyConfig)ConfigurationManager.GetSection("myConfig")
  </code></pre>
  
  <p>We are making some changes and are now storing the configuration file in the DB as an xml, exactly like it is currently in the config file.</p>
  
  <p>I would like to maintain the MyConfig as a ConfigurationSection for backwards compatibility but still be able to instantiate it by using the XML string retrieved from the DB.</p>
  
  <p>Is it possible? If so, how? (Keep in mind it should still work as instantiated above)</p>