实体框架5无法正确安装? [英] Entity Framework 5 not installing correctly?

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

问题描述

我刚刚安装了VS2012。我创建了一个新项目来执行Code First。然后,我按照以下说明使用Nuget将EF5添加到项目中:
http ://msdn.microsoft.com/zh-cn/data/ee712906



然后我确认它已安装:
http://i1048.photobucket.com/albums/s361/usernames_r_stupid/Nuget_zpse7808c9b.png

这表明我已安装EF 5。确实我的App.config显示:

 < section name = entityFramework type = System.Data.Entity.Internal .ConfigFile.EntityFrameworkSection,EntityFramework,Version = 5.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 requirePermission = false /> 

但是,如果我查看项目中System.Data.Entity程序集引用的属性,它将显示版本4.0.0.0!
http://i1048.photobucket.com/albums/s361/usernames_r_stupidid /SystemDataProps_zps4a71be1b.png



我在这里做错了什么?



〜S

解决方案

您应该正在寻找 EntityFramework.dll System.Data 不是EntityFrakework程序集。


I just installed VS 2012. I created a new project to do Code First with. I then used Nuget to add EF5 to the project, as per these instructions: http://msdn.microsoft.com/en-us/data/ee712906

I then verified it's install: http://i1048.photobucket.com/albums/s361/usernames_r_stupid/Nuget_zpse7808c9b.png

Which shows that I have EF 5 installed. And indeed my App.config shows:

<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />

But if I look at the properties of the System.Data.Entity assembly reference by my project it shows version 4.0.0.0! http://i1048.photobucket.com/albums/s361/usernames_r_stupid/SystemDataProps_zps4a71be1b.png

What am I doing wrong here? This is driving me nuts.

~S

解决方案

You should be looking to EntityFramework.dll. System.Data is not the EntityFrakework assembly.

这篇关于实体框架5无法正确安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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