var query = from contact in contacts join order in orders on contact.ContactID equals order.Contact.ContactID into contactGroup select new { ContactID = contact.ContactID, OrderCount = contactGroup.Count(), Orders = contactGroup };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)