linq top selling products
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
linq top selling products
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
linq top selling products
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.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us