Consider:
Class Client
Class Project
Class Ticket
Class Reply
Clients have a sub collection of projects, projects have a sub collecti
Another possibility is to use StriplingWarrior's solution but then cleanse the intermediate data from the final result:
var data = ctx.Set()
.Select(p => new
{
Ticket = p,
Clients = p.Client,
LastReplyDate = p.Replies.Max(q => q.DateCreated)
})
.AsEnumerable()
.Select(p => new
{
Ticket = p.Ticket,
LastReplyDate = p.LastReplyDate
});