示例#1
0
 public UnitOfWork(ApplicationDbContext db)
 {
     _db             = db;
     Category        = new CategoryRepository(_db);
     CoverType       = new CoverTypeRepository(_db);
     Product         = new ProductRepository(_db);
     Company         = new CompanyRepository(_db);
     SP_Call         = new SP_Call(_db);
     ApplicationUser = new ApplicationUserRepository(_db);
 }
示例#2
0
 public UnitOfWork(ApplicationDbContext db)
 {
     _db             = db;
     Category        = new CategoryRepository(_db);
     SP_Call         = new SP_Call(_db);
     CoverType       = new CoverTypeRepository(_db);
     Product         = new ProductRepository(_db);
     Company         = new CompanyRepository(_db);
     ApplicationUser = new ApplicationUserRepository(_db);
     OrderDetails    = new OrderDetailsRepository(_db);
     OrderHeader     = new OrderHeaderRepository(_db);
     ShoppingCart    = new ShoppingCartRepository(_db);
 }
示例#3
0
 public UnitOfWork(ApplicationDbContext db)
 {
     _db      = db;
     Category = new CategoryRepository(_db);
     SP_Call  = new SP_Call(_db);
 }