EF: GetRelationTypeExpensiveWay
Posted by: Julia Lerman Blog - Dont Be Iffy...,
on 12 Aug 2008 |
View original | Bookmarked: 0 time(s)
I spend a lot of time in Reflector learning about Entity Framework but here's a very
oddly named (yet descriptive, don't you think?) method I missed.
In EF, when your entities are being managed by the objectContext, relationships are
defined by separate objects. In order to build a graph, the context looks at your
entity, then finds all of the RelationshipEntries that contain that entity and from
there traverses to the entities on the other end of the relationship object.
Outside of the objectContext,...