Can you use SelectMany in a query against your DB and if you can, what type does the column need to be in order to do this? I am messing around with LINQPad and anytime I try to use SelectMany I get an error, and from what I am reading it sounds like the type in your lambda expression has to be a collection.
Share
If you have 3 Tables. Houses, HousesPersons and Persons.
Houses has a One->Many relationship with Persons using HousesPersons to store HouseId and PersonId.
This query will get you a list of all persons in all houses in a flat list, rather than grouped by House.
EDIT: Sorry I can’t get AdventureWorks to work on my machine to use a text book example.