title: EntityFramework Core Update-Database throws exception "No DbContext was found in assembly"
body: <p>I have a project that follows Code-First design and I have n-tier structure so it looks like this:</p>
  
  <p>DataAccessLayer -> BusinesLogicLayer -> ServiceLayer </p>
  
  <p>And I have a seperate Entity Model layer. I want to use Entity Model layer only in DataAccessLayer and pass results in view models to the business logic layer and so on. </p>
  
  <p>I can add migrations without any problems. But when i type <code>update-database</code> i get the following error.</p>
  
  <blockquote>
    <p>No DbContext was found in assembly 'MyProject.Service'. Ensure that
    you're using the correct assembly and that the type is neither
    abstract nor generic.</p>
  </blockquote>
  
  <p>Do I have to reference my <code>DbContext</code> directly from the startup project? I feels like I'll have to put all the data access operations in the start up project. Can anyone help? </p>