实体框架5.0 - 最低.NET Framework版本要求? .NET 4.0或4.5吗?实体、框架、最低、版本

2023-09-03 04:47:09 作者:拥有你该多难

有关实体框架5.0,什么是最低.NET Framework版本要求?无论是净4.0或4.5?

For Entity Framework 5.0, What is the minimum .Net Framework version required ? either .Net 4.0 or 4.5 ?

推荐答案

这取决于你所说的需要。

That depends on what you mean by "required".

为了使用所有的功能,.NET 4.5是必需的。然而,EF5将运行在.NET 4中,但会基本功能相同的EF 4.3。

In order to use all features, .NET 4.5 is required. However, EF5 will run on .NET 4, but will basically function the same as EF 4.3.

编辑:

EF5仍然会提供一些​​小的性能增强对.NET 4中,并且当然会提供错误修复,但不会提供广大的新功能(如枚举支持,空间类型等)

EF5 will still provide some minor performance enhancements on .NET 4, and will of course provide bug fixes, but will not provide the majority of new features (like Enum support, Spatial types, etc..)

EDIT(12年6月24日):

EDIT (6/24/12):

由于EF6的,新的性能特征被搬出了核心框架的,所以你现在可以充分受益于.NET 4中,但EF5仍然依赖于4.5的改进。

As of EF6, the new performance features were moved out of the core framework, so you can now get full benefits on .NET 4, but EF5 is still dependent upon 4.5 for the improvements.