Is there anyway to use Entity Framework in .NET Core?

.net-core asp.net c# entity-framework

Question

I've just changed to the new ASP.NET 5 platform. I use visual studio code as my default IDE, and DNX for execution. .NET Core is now by default but I need to switch to .NET Framework always I want to reference the System.Data.Entity namespace or the TodoContext class.

Is there anyway to use EF in .NET Core?

This is what I'm doing now. enter image description here

1
6
5/10/2015 10:58:01 PM

Accepted Answer

The EntityFramework in System.Data is version 6. If you want to use .NET Core then you need to switch to EF 7 which no longer lives in System.Data but in the EntityFramework.* nuget packages.

Here is an example: https://github.com/aspnet/MusicStore/blob/master/src/MusicStore/project.json#L15

18
5/10/2015 11:07:47 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