I know I am missing something completely obvious, but why can\'t I see the property Local when working with an EF context? The typical example online looks like
DbContext, DbSet etc. are part Entity Framework 4.1/4.2 which is shipped, among others, as the EntityFramework NuGet package. With just the .NET Framework you only have what is now called "Core EF Runtime" according to this:
In short, you need to install EF 4.1/4.2.
If you look at your auto-generated code for the context class, does it inherit from DbContext or ObjectContext?
If it is inheriting from ObjectContext, there are a few more steps you need to take.
Two *.tt files will be added to your project called something like MyModel.tt and MyModel.Context.tt.
After a recompile, look at your auto-generated code for the context again and it should now inherit from DbContext. Your Parents object will now be of type DbSet instead of ObjectSet and you will now be able to use the Local property.