Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET-5 with EF6

Is it possible to use the new ASP.NET with Entity Framework 6 instead of Entity Framework v7?

I use the latest Visual Studio 2015 and could not add a Ado.Net Data Model but the Reference to EF6 was added.

like image 475
user4520452 Avatar asked Feb 02 '15 14:02

user4520452


1 Answers

Most existing packages, such as EF6, will not support asp.net Core 5; because of the significant differences, they need to be manually updated. If you're wanting to use EF6 you'll need to stick to asp.net 5 (not Core).

I've run into a series of issues running the EF6 package manager commands, such as Add-Migration, in VS2015 CTP6; I believe they're still working on updates. I was able to get them working in a .Net 4.5 library that is referenced by my .Net 5 libraries, but I've found that occasionally I have to uninstall and install EF6 again to get the package manager commands working.

like image 157
Matt DeKrey Avatar answered Oct 20 '22 00:10

Matt DeKrey