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);
 }
Exemple #3
0
 public RoleRepository(commerceShopContext context)
 {
     this.db = context;
 }
Exemple #4
0
 public ProductRepository(commerceShopContext context)
 {
     this.db = context;
 }
 public OrderRepository(commerceShopContext context)
 {
     this.db = context;
 }
Exemple #6
0
 public DeliveryRepository(commerceShopContext context)
 {
     this.db = context;
 }
Exemple #7
0
 public CommentRepository(commerceShopContext context)
 {
     this.db = context;
 }