Пример #1
0
 public IEnumerable <Order> GetOrder([Service] WwiContext wwiContext, int orderID) =>
 wwiContext
 .Orders
 .AsNoTracking()
 .Where(o => o.OrderID == orderID)
 .AsQueryable();
Пример #2
0
 public IEnumerable <Order> GetOrders([Service] WwiContext wwiContext) =>
 wwiContext
 .Orders
 .AsNoTracking()
 .AsQueryable();