I have the following table structure, which is imported into an Entity Framework project:
(NOTE: I mislabled T1Name as T2Name in Table1)
alt text http://digitalsamurai.us/images/drawing2.png
I have labeled the Entity Objects. The many-to-many joint table Table5, is represented as an EntityCollection<Entity4> in Entity3, and as an EntityCollection<Entity3> in Entity4 (EntityCollection<T> implements IEnumerable<T>, so it can be queried). I need to construct a result set that is:
T1Name, T2Name, T3Name
This will result in repeat entries for T1Name, and T2Name.
Could someone show me how to write this LINQ query?
Thank you for any help.
“Dot notation”:
Notice I didn’t use
joinat all. That’s on purpose; you don’t need it here.