Exemple #1
0
 public OrderItemRepository(OrderContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
 public OrderRepository(OrderContext orderContext)
 {
     _context             = orderContext;
     _orderItemRepository = new OrderItemRepository(_context);
 }