var counts = dal.QueryStatisticsCount(condition); var result = from p in counts group p by new { AuctionName = p.AuctionName, StatusName = p.StatusName } into g select new { StatusName = g.Key.StatusName, Num = g.Sum(c => c.VehicleCount) };
var counts = dal.QueryStatisticsCount(condition); var result = from p in counts group p by new { AuctionName = p.AuctionName, StatusName = p.StatusName } into g select new { StatusName = g.Key.StatusName, Num = g.Sum(c => c.VehicleCount) };