📅  最后修改于: 2022-03-11 14:48:47.046000             🧑  作者: Mango
var query =
(from item in OrderedItem
group item.Qty by item.Product into g
orderby g.Sum() descending
select g.Key).Take(5); // get the top 5 orders