Why can't I see the Local property when using the Entity Framework?

I know that something is completely obvious to me, but why can't I see the property Localwhen working with the EF context? A typical online example is as follows:

context.Parents.Local

But I can not see the property Local. Now from what I understand, Local is a member of the DbSet class, and I don't think I work with DbSet in my application. I know that I added a link to EntityFramework, I have it using System.Data.Entity, and everything that I am familiar with work works fine. Except Localdoes not exist, and I really need some sorting for mine DataGridView.

Help!

+5
source share
2 answers

, DbContext ObjectContext?

ObjectContext, .

  • - > .
  • "" .
  • 'ADO.NET DbContextGenerator'
  • , (: "MyModel" )
  • ""

*.tt MyModel.tt MyModel.Context.tt.

DbContext. Parents DbSet ObjectSet, Local.

+2

DbContext, DbSet .. Entity Framework 4.1/4.2, , , EntityFramework NuGet. .NET Framework , "Core EF Runtime" this:

, EF 4.1/4.2.

+4

All Articles