可以在 .NET Standard 项目中使用 Entity Framework 6 吗? [英] Can Entity Framework 6 be used in a .NET Standard project?

查看:43
本文介绍了可以在 .NET Standard 项目中使用 Entity Framework 6 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果不是,会是吗?如果有,什么时候?

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

我还没有找到任何明确的官方信息,我在 Stack Overflow 上能找到的有限信息已经有一两年的历史了.

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.

我找到官方信息说 EF 6.3 将能够在 .NET Core 项目中使用,但我找不到它的发布日期,我也不确定在 .NET Core 项目中使用的含义是什么.NET 标准项目是.

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.

推荐答案

.NET Standard 项目不可执行.

.NET Standard projects are not executable.

EF 6 支持 .NET Standard 2.1,目前由 .NET Core 3.0 或更高版本支持 - 没有 .NET Framework 版本.EF 6 还支持 .NET 4.0 和 4.5 或更高版本.

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

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

这篇关于可以在 .NET Standard 项目中使用 Entity Framework 6 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆