见版本实体框架 [英] See version of Entity Framework

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

问题描述

我有一个VS2008 Web项目与EF1数据模型。现在我已经转换这一个VS2010项目.N​​ET 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:

  1. 什么是EF集版本?在(正确的).NET 4的项目,它实际上只能为4。
  2. 什么是你的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.

  • 有关CSDL,EF 4http://schemas.microsoft.com/ado/2008/09/edm; EF 1是http://schemas.microsoft.com/ado/2006/04/edm。
  • 对于SSDL,EF 4http://schemas.microsoft.com/ado/2009/02/edm/ssdl; EF 1是http://schemas.microsoft.com/ado/2006/04/edm/ssdl
  • 有关MSL,EF 4http://schemas.microsoft.com/ado/2008/09/mapping/cs; EF 1是瓮:架构 - 微软COM:窗口:存储:映射:CS

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

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