How to manually load related entities in a N:N relationship?
I am using EF5 and when the the relationship is 1:N, if I want to load related entities I do the following: With T-SQL I load from database the main entities with a T-SQL like that: select * from MainEntities where ... with T-SQL I load the related entities select * from RelatedEntities where IDMainEntity IN (---) At this point EF populate the property navigation of the main entities with the related entities. Also, in the local property of the type of each entity in the dbContext I have all the entities of each type. However, if i do the same with a N:N relationship, I don't have the entity