Tuesday, April 1, 2014

Group By in Linq

 var c = (from s in dbstv.tblBaskets group s by s.CustomerId into a select new{a.Key,mmm=a.Sum(p=>p.ItemPrice)});

No comments:

Post a Comment