📜  linq 最畅销的产品 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:54.489000             🧑  作者: Mango

代码示例2
1.
2.
var query =
3.
    (from item in OrderedItem
4.
    group item.Qty by item.Product into g
5.
    orderby g.Sum() descending
6.
    select g.Key).Take(5); // get the top 5 orders
7.