How would you approach this problem with an ORM? This is a hypothetical (simplified) example:
I have a table of cities:
1 - New York
2 - London
3 - San Francisco
4 - New Orleans
I have a table of scores:
(first column Unique Primary Key, second Month Code, third FK to City, fourth Score (int))
1 - 352 - 1 - 9
2 - 352 - 2 - 10
For month 352 only New York and London are mentioned.
When I present this to a user in a user interface I'd like a grid showing all 4 cities for this month. And nulls (blanks) for the cities San Fran and New Orleans.
What is the best approach for this with an ORM? Bring back your Business Objects in "model" form and then transform them into a "viewmodel" form? How have you handled similar situations in ORMs? I've handle this before in ADO.NET with my SQL statements, but have never done this kind of thing in an ORM and I'm looking for advice, guidance, or an approach.