I just got on board with EF 5 and I use my first code migration tool, but it looks like I am getting an error message when I try to enable migration.
I type Enable-Migrations in the package manager console and then it says
No classes derived from DbContext were found in the current project.
Edit the generated configuration class to indicate the context to enable migration for.
The first start of Migrations is enabled for the MyApp.MvcUI project.
Then it creates the Migrations folder and the Configuration class in my MvcUI project. The fact is that my DbContext lives in a class library project called MyApp.Domain. He should do all this in this project and should not have problems finding my DbContext.
c # entity-framework-5 entity-framework ef-code-first code-first-migrations
Chev Mar 02 2018-12-12T00: 00Z
source share