Can Entity Framework 6 be used in a .NET Standard project?

.net-standard entity-framework entity-framework-6

Question

And if not, will it be? If so, when?

I haven't been able to find any clear official information on this, and the limited information I was able to find on Stack Overflow is a year or two old.

I was able to find official information saying EF 6.3 will be able to be used in a .NET Core project, but I couldn't find a release date for it, nor am I sure what the implications for use in a .NET Standard project are.

1
2
11/5/2019 7:58:32 PM

Accepted Answer

.NET Standard projects are not executable.

EF 6 supports .NET Standard 2.1, which is currently supported by .NET Core 3.0, and also .NET 4.5 or later.

https://github.com/aspnet/EntityFramework6/blob/release/6.4/src/EntityFramework/EntityFramework.csproj#L6

3
10/14/2019 5:35:09 PM

Popular Answer

Some clarification, since EntityFramework 6.3.0 .NET Standard 2.1 has been supported. However there is no .NET Framework version that supports .NET Standard 2.1. Comment from Microsoft:

NET Framework won't support .NET Standard 2.1 or later versions. For more details, see the announcement of .NET Standard 2.1.

This means that a majority of all applications using EntityFramework 6.X won't be able to use the .NET Standard 2.1 project anyway.

https://docs.microsoft.com/en-us/dotnet/standard/net-standard

https://www.nuget.org/packages/EntityFramework/#



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