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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With