实体框架5无法正确安装? [英] Entity Framework 5 not installing correctly?
问题描述
我刚刚安装了VS2012。我创建了一个新项目来执行Code First。然后,我按照以下说明使用Nuget将EF5添加到项目中:
http ://msdn.microsoft.com/zh-cn/data/ee712906
然后我确认它已安装: 这表明我已安装EF 5。确实我的App.config显示: 但是,如果我查看项目中System.Data.Entity程序集引用的属性,它将显示版本4.0.0.0! 我在这里做错了什么? 〜S 您应该正在寻找 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: 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 这篇关于实体框架5无法正确安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
http://i1048.photobucket.com/albums/s361/usernames_r_stupid/Nuget_zpse7808c9b.png / p>
< section name = entityFramework type = System.Data.Entity.Internal .ConfigFile.EntityFrameworkSection,EntityFramework,Version = 5.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089 requirePermission = false />
http://i1048.photobucket.com/albums/s361/usernames_r_stupidid /SystemDataProps_zps4a71be1b.png
EntityFramework.dll
。 System.Data
不是EntityFrakework程序集。<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
EntityFramework.dll
. System.Data
is not the EntityFrakework assembly.