示例#1
0
 public OrderRepository(StoreDbContext context) : base(context)
 {
 }
 public ProductRepository(StoreDbContext context) : base(context)
 {
 }
示例#3
0
 public UnitOfWork(StoreDbContext context)
 {
     _context = context;
     Products = new ProductRepository(_context);
     Orders   = new OrderRepository(_context);
 }