Horje
linq top selling products Code Example
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.
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




Csharp

Related
How to enumerate an enum Code Example How to enumerate an enum Code Example
1080 / 7 Code Example 1080 / 7 Code Example
asp.net mvc image upload Code Example asp.net mvc image upload Code Example
compass direction mobile unity Code Example compass direction mobile unity Code Example
how to pass value to anothe form c# winform Code Example how to pass value to anothe form c# winform Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11