Entity Framework Many to Many and Eager Loading
问题 I'm using Entity Framework 4.1 with MySql and having a problem with the eager loading of a many to many relationship. A simplified version of the affected tables looks like: CabinCategory - CabinCategoryId CabinGrade - CabinGradeId, CabinCategoryId Deck - DeckId DeckCabinGrades - DeckId, CabinGradeId <--- Join table I'm ultimately trying to access CabinCategory.CabinGrade.Deck I think I've managed to map this successfully using modelBuilder.Entity<CabinGrade>() .HasMany(c => c.Decks)