title: Set database name dynamically in LINQ to SQL
body: <p>I am using LINQ to SQL to connect to database from my application. When I am changing environment from production to staging, I can update my connection string in web.config.
  But there is one more value I need to update when environment changes. That is database name. In LINQ to SQL designer file, database name is mentioned as attribute like-</p>
  
  <pre><code>[System.Data.Linq.Mapping.DatabaseAttribute(Name="somedbname")]
  </code></pre>
  
  <p>How can I pick up value of Name dynamically from some config file?</p>
  
  <p>Any help is really appreciated.</p>