My Project has 3 tiers:
I'm using MVC 4 with Entity Framework 5 and Code First Approach.
So It's possible to enable POCOs Migrations on Project.UI?
I Tried run:
enable-migrations Project.Data.MyDbContext
But receive the message:
The context type 'Project.Data.MyDbContext' was not found in the assembly 'Project.UI'.
You need to make sure you are running enable-migrations on the project containing your DBContext so you cant run it on the UI project (otherwise it needs to be a relative path to the project from the currently selected one eg. ./project.data)
Set default project to Project.Data
then run:
enable-migrations