What is the reference for ´System.Data.Entity.Infrastructure´?

我们两清 提交于 2019-12-05 12:52:18

问题


Using Entity Framework Power Tools Beta 2 extension, it generates model classes with the following imports:

using System.Data.Entity.Infrastructure;

What reference do I need to include into my project using Visual Studio 2010?

Currently, I have the following References:

  • log4net
  • System.configuration
  • System.Core
  • System.Data
  • System.Data.Entity
  • System.Web
  • System.Web.Mvc
  • System.XML

And in the Add Reference dialog I have the following:


回答1:


Don't add EF lib via "Add reference" dialog (it's old version) You need to add NuGet package "EntityFramework" of latest version.



来源:https://stackoverflow.com/questions/13810017/what-is-the-reference-for-%c2%b4system-data-entity-infrastructure%c2%b4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!