How can I manage EF 6 migrations in visual studio 2015?

c# ef-migrations entity-framework entity-framework-6 visual-studio-2015

Question

I started a new MVC project with EntityFramework -Version 6.1.2 using Visual Studio 2013 latest update. I made a couple of migrations and updated the database. After this I checked out the project on another computer and opened with Visual Studio 2015 CTP 6.

If I go in the package manager console and try to run any migration commands, they're not recognized:

add-migrations : The term 'add-migrations' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

How can I manage my migrations using Entity Framework 6 in Visual Studio 2015?

1
10
4/22/2015 8:28:46 PM

Popular Answer

Have you tried uninstalling and reinstalling EntityFramwork NuGet package? I had the same issue as described and it solved it.

5
4/25/2015 9:13:05 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow