无法 using System.Data.Entity.Database的问题

花了几天时间,终于尝试除了解决办法.

安装完新版EntityFramework之后,从这里下载:http://www.microsoft.com/download/en/details.aspx?id=18116

将原引用中的的EntityFramework删除,

然后点击菜单 项目->添加引用->浏览-〉找到新安装的EntityFramework目录下面的EntityFramework.dll文件,添加到引用就可以了

(从nutget中安装的好像4.2版的EntityFramework文件好像没有不行)

 

你可能感兴趣的:(无法 using System.Data.Entity.Database的问题)