Sunday, September 13, 2009

Linq Group By 2 columns


from c in db.Customers

group c by new { c.Country, c.City } into g

select new { g.Key.Country, g.Key.City, Count = g.Count() };

No comments:

Post a Comment