Beispiel #1
0
 public UnitOfWork(ApplicationDbContext dbContext)
 {
     this.dbContext  = dbContext;
     Category        = new CategoryRepository(dbContext);
     CoverType       = new CoverTypeRepository(dbContext);
     StoredProc_Call = new StoredProc_Call(dbContext);
 }
Beispiel #2
0
 public UnitOfWork(ApplicationDbContext db)
 {
     _db             = db;
     Category        = new CategoryRepository(_db);
     CoverType       = new CoverTypeRepository(_db);
     Product         = new ProductRepository(_db);
     Company         = new CompanyRepository(_db);
     ApplicationUser = new ApplicationUserRepository(_db);
     ShoppingCart    = new ShoppingCartRepository(_db);
     OrderHeader     = new OrderHeaderRepository(_db);
     OrderDetails    = new OrderDetailsRepository(_db);
     StoredProc_Call = new StoredProc_Call(_db);
 }