Exemplo n.º 1
0
 public IEnumerable <Order> GetOrder([Service] WwiContext wwiContext, int orderID) =>
 wwiContext
 .Orders
 .AsNoTracking()
 .Where(o => o.OrderID == orderID)
 .AsQueryable();
Exemplo n.º 2
0
 public IEnumerable <Order> GetOrders([Service] WwiContext wwiContext) =>
 wwiContext
 .Orders
 .AsNoTracking()
 .AsQueryable();