So, I understand that group by works basically like this:
var query = from c in context.Contacts
join o in context.Orders on c.Id on o.CustomerId
group c by o.Id
select new { g.Key, g.Sum(c => c.Whatever) };
Grouping like that only allows me access to the contents of c. But what if I wanted data from both tables c and o?
var query = from c in context.Contacts
join o in context.Orders on c.Id on o.CustomerId
//insert answer here
select new { g.Key, g.Sum(c => c.Whatever), g.Sum(o => o.Whatever) };
Is that even possible?