Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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
Source by easysavecode.com #
 
PREVIOUS NEXT
Tagged: #linq #top #selling #products
ADD COMMENT
Topic
Name
3+7 =