Beispiel #1
0
 public static IList <OrderInfo> GetOrderInfo(IQueryable <Order> orders)
 {
     return(orders.ActualOrders().Select(x => new OrderInfo {
         InvoiceNumber = x.InvoiceNumber,
         OrderDate = x.OrderDate,
         Company = x.Customer.Name,
         Store = x.Customer.HomeOffice.City,
         TotalAmount = x.TotalAmount,
     }).ToList());
 }