Advertisement
butoff

OrdersFromByTheCake

Jun 7th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. var productList = db.ProductOrders
  2.                     .Where(po => po.OrderId == orderId)
  3.                     .Select(po => new
  4.                     {
  5.                         po.ProductId,
  6.                         po.Product.Name,
  7.                         po.Product.Price,
  8.                         po.ProductQty
  9.                     })
  10.                     .ToList()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement