title: asp.net Identity 2.0 How to change connection string / DbContext at runtime?
body: <p>I would like to do the following in my MVC5, asp.net identity 2.0 app:</p>
  
  <ol>
  <li><p>Change the connection string used by the ApplicationDBContext at runtime. I will have numerous clients, each with their own SQL database. So at session start, I need to be able to specify the desired database connection.</p></li>
  <li><p>I assume to class ApplicationDbContext that I add the overload:</p>
  
  <pre><code>public static ApplicationDbContext Create(string connectionString)
  {
      return new ApplicationDbContext(connectionString);
  }
  </code></pre></li>
  <li><p>I also am assuming that in Startup.Auth.cs that I need to modify this line to pass in the connection string. If so, then I am having troubles here with doing just that.</p>
  
  <pre><code>app.CreatePerOwinContext(ApplicationDbContext.Create);
  </code></pre></li>
  </ol>
  
  <p>Am I going down the right road?  Am I missing anything else?  I am basically stuck at this point. TIA for your help.</p>