Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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:

Add Reference Dialog

like image 266
Rubens Mariuzzo Avatar asked Dec 10 '12 22:12

Rubens Mariuzzo


People also ask

What is using system data entity?

A DbSet represents the collection of all entities in the context, or that can be queried from the database, of a given type. DbSet objects are created from a DbContext using the DbContext.


1 Answers

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

like image 136
Andriy F. Avatar answered Sep 22 '22 19:09

Andriy F.