title: EF Code First MigrateDatabaseToLatestVersion accepts connection string Name from config
body: <p>While trying to implement EF Migrations in my project I am stuck at one place.</p>
  
  <p>EF Code First MigrateDatabaseToLatestVersion  accepts connection string Name from config.</p>
  
  <p>In my case database name get known at Runtime (User selects it from dropdown). 
  Just the way DbContext either accepts, ConnectionString or connectionString Name in it's constructor, "MigrateDatabaseToLatestVersion" does not accept the same</p>
  
  <blockquote>
  <pre><code>System.Data.Entity.Database.SetInitializer
  (new MigrateDatabaseToLatestVersion&lt;SrcDbContext, SRC.DomainModel.ORMapping.Migrations.Configuration&gt;(connString));
  </code></pre>
  </blockquote>
  
  <p>Is there any other way to achieve this?</p>