问题
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