visual studio 2015 - The EntityFramework package is not installed on project ASP.NET Beta8 -


trying entity framework 7 work in asp.net 5 beta8 project. have references entityframework.sqlserver 7.0.0-beta8 , entityframework.commands 7.0.0-beta8 packages in references.

yet when go nuget package manager console , type:

enable-migrations  entityframework package not installed on project "my project" 

and add-migration

add-migration initialmigration  entityframework package not installed on project "my project" 

the default project in console set correct project.

the migrations experience in asp.net 5 still work-in-progress. following steps overly complex , simplified time reach stable release.

now have model, can use migrations create database you.

  1. open command prompt (windows key + r, type cmd, click ok)
  2. use cd command navigate project directory
  3. run dnvm use 1.0.0-beta8
  4. run dnx ef migrations add myfirstmigration scaffold migration create initial set of tables model.
  5. run dnx ef database update apply new migration database.

because database doesn’t exist yet, created before migration applied.

source: entity framework 7 documentation


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -