我有一个VS2008 Web项目与EF1数据模型。现在我已经转换这一个VS2010项目.NET 4我的问题是关于实体框架。我怎么能看到它是什么版本的EF的。或者,我怎么能确定它是EF 4?
I have a VS2008 web project with a EF1 datamodel. Now I have converted this to a VS2010 project with .Net 4. My question is about the Entity Framework. How can I see what version of EF it is. Or how can I make sure it is EF 4?
实际上有两个问题在这里:
There are really two questions here:
什么是EF集版本?在(正确的).NET 4的项目,它实际上只能为4。 什么是你的EF模型版本?也许令人惊讶的是EF 4组件支持EF 1和EF 4款车型在运行时。当你升级VS 2008项目到.NET 4中,它将EDMX升级到EF 4模型,以及。但是,如果你跳过了这个或只是想确认这是正确的,看看的xmlns
在EDMX元素。
When you upgrade a VS 2008 project to .NET 4, it will upgrade the EDMX to an EF 4 model, as well. But if you skipped this or just want to confirm it's right, look at the xmlns
elements in the EDMX.