确定我正在使用的实体框架的版本? [英] Determine version of Entity Framework I am using?

查看:104
本文介绍了确定我正在使用的实体框架的版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我相信有两个版本1和2?而版本2被称为实体框架4.0?



我如何知道应用程序中正在使用哪个版本?



这是在我的web.config这是否意味着我正在使用版本2?

 code>< add assembly =System.Data.Entity,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089/> 


解决方案

有两个版本:1和4. EFv4是.net 4.0的一部分,EFv1是.net 3.5 SP1的一部分。



是的,上面的配置设置指向EFv4 / .net 4.0。



编辑
如果打开参考文件夹并找到 system.data.entity ,单击该项目,然后检查运行时版本号在属性浏览器中,您将看到子版本。例如,显示运行时版本v4.0.30319,版本属性显示4.0.0.0。也可以以这种方式查看 EntityFramework.dll 。只有版本将是4.1.0.0,运行时版本将是v4.0.30319,它指定它是一个.NET 4组件。或者,您可以打开路径属性中列出的文件位置,右键单击相关组件,选择属性,然后选择详细信息选项卡并查看产品版本。


I believe there are two versions 1 and 2? And version 2 is referred to as Entity Framework 4.0?

How can I tell what version is being used in an application?

This is in my web.config does this mean I am using version 2?

<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

解决方案

There are two versions: 1 and 4. EFv4 is part of .net 4.0, and EFv1 is part of .net 3.5 SP1.

Yes, the config setting above points to EFv4 / .net 4.0.

EDIT If you open the references folder and locate system.data.entity, click the item, then check the runtime version number in the Properties explorer, you will see the sub version as well. Mine for instance shows runtime version v4.0.30319 with the Version property showing 4.0.0.0. The EntityFramework.dll can be viewed in this fashion also. Only the Version will be 4.1.0.0 and the Runtime version will be v4.0.30319 which specifies it is a .NET 4 component. Alternatively, you can open the file location as listed in the Path property and right-click the component in question, choose properties, then choose the details tab and view the product version.

这篇关于确定我正在使用的实体框架的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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