Trying to get Entity Framework 7 to work in my ASP.NET 5 Beta8 project. I have references to EntityFramework.SqlServer 7.0.0-beta8 and EntityFramework.Commands 7.0.0-beta8 packages in my references.
Yet when I go to the Nuget Package Manager Console and type:
Enable-Migrations The EntityFramework package is not installed on project "My Project"
Add-Migration InitialMigration The EntityFramework package is not installed on project "My Project"
The default project in the console is set to the correct project.
The migrations experience in ASP.NET 5 is still a work-in-progress. The following steps are overly complex and will be simplified by the time we reach a stable release.
cdcommand to navigate to the project directory
dnvm use 1.0.0-beta8
dnx ef migrations add MyFirstMigrationto scaffold a migration to create the initial set of tables for your model.
dnx ef database updateto apply the new migration to the database.
Because your database doesnâ€™t exist yet, it will be created for you before the migration is applied.
Source: Entity Framework 7 documentation