title: EF 7 Migrations. Web project, DBContext and Migrations in different assemblies
body: <p>I have three projects in my solution.</p>
  
  <p><code>BaseApp.Data</code> - which holds my DBContext.</p>
  
  <p><code>BaseApp.Data.ProjectMigration</code> - which holds all migration files (depends on <code>BaseApp.Data</code>)</p>
  
  <p><code>BaseApp.Web</code> - web application with Startup class.</p>
  
  <p>I added my first migration like this:</p>
  
  <pre><code>dnx ef migrations add Initial -p BaseApp.Data.ProjectMigration
  </code></pre>
  
  <p>After this command the Migrations folder appears with all corresponding files in <code>BaseApp.Data.ProjectMigration</code>. So everything is ok so far.</p>
  
  <p>Than I try to apply migrations:</p>
  
  <pre><code>dnx ef database update
  </code></pre>
  
  <p>After this command the database is created, but no migrations applied. I also tried</p>
  
  <pre><code>dnx ef database update -p BaseApp.Data.ProjectMigration
  </code></pre>
  
  <p>with same result. Also next command returns "No migrations were found".</p>
  
  <pre><code>dnx ef migrations list -p BaseApp.Data.ProjectMigration
  </code></pre>
  
  <p>Also if I add migrations to <code>BaseApp.Data</code> then everything works fine. The next commands work as expected:</p>
  
  <pre><code>dnx ef migrations add Initial -p BaseApp.Data
  
  dnx ef database update
  </code></pre>
  
  <p>So is it possible to hold migration files not in DBContext project?</p>