title: how to dynamically set custom conn string for db context?
body: <p>I have the following db context which was auto-genned through the wizard in VS:</p>
  
  <pre><code>MyEntities : DbContext
  </code></pre>
  
  <p>When I go to the auto-genned definition, I see the following constructor defintion:</p>
  
  <pre><code>public MyEntities() : base("name=SecurityApiEntities")
  {
  }
  </code></pre>
  
  <p>I need to be able to set the connection string dynamically. How can I go about doing this? I don't see a way to do this off hand described in this url:</p>
  
  <p><a href="https://msdn.microsoft.com/en-us/library/jj592674(v=vs.113).aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/jj592674(v=vs.113).aspx</a></p>