public EFUnitOfWork(commerceShopContext db) { this.db = db; this.userRepository = new UserRepository(db); this.commentRepository = new CommentRepository(db); this.rateRepository = new RateRepository(db); this.productRepository = new ProductRepository(db); this.orderRepository = new OrderRepository(db); this.roleRepository = new RoleRepository(db); this.rightRepository = new RightRepository(db); this.contactRepository = new ContactRepository(db); this.deliveryRepository = new DeliveryRepository(db); }
public EFUnitOfWork(string connectionString) { this.db = new commerceShopContext(connectionString); }
public RoleRepository(commerceShopContext context) { this.db = context; }
public ProductRepository(commerceShopContext context) { this.db = context; }
public OrderRepository(commerceShopContext context) { this.db = context; }
public DeliveryRepository(commerceShopContext context) { this.db = context; }
public CommentRepository(commerceShopContext context) { this.db = context; }