Can I use Entity Framework in .NET Core?

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

Can I use EF in .NET Core?

This is what I am doing right now. enter image description here

+6
source share
1 answer

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

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

+16
source

Source: https://habr.com/ru/post/986935/


All Articles