public class Order
{
public int Id;
public string CustomerName;
public DateTime OrderDate;
public List<OrderLine> Lines;
}
public class OrderLine
{
public decimal Quantity;
public decimal UnitPrice;
public Product Product;
}
public class Product
{
public int Id;
public string Name;
public decimal DefaultUnitPrice;
}
我越來越困惑,因爲如何做這個查詢,我試圖顯示CustomerName
升序,取決於訂單的總數。 在此先感謝。LINQ/C#子查詢
'客戶名稱升序根據總的Orders'的那是什麼? –
Alsom你是什麼意思*取決於訂單總數*?兩個排序屬性,CustomerName和count(Orders)? –
貨幣總訂單金額,訂單總數? – JDB