Ejemplo n.º 1
0
 public UnitOfWork(ApplicationDbContext db)
 {
     _db       = db;
     Category  = new CategoryRepository(_db);
     CoverType = new CoverTypeRepository(_db);
     SP_Call   = new SP_Call(_db);
 }
 public UnitOfWork(ApplicationDbContext db)
 {
     _db             = db;
     Category        = new CategoryRepository(_db);
     CoverType       = new CoverTypeRepository(_db);
     Company         = new CompanyRepository(_db);
     Product         = new ProductRepository(_db);
     ApplicationUser = new ApplicationUserRepository(_db);
     SP_Call         = new SP_Call(_db);
 }
Ejemplo n.º 3
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);
     SP_Call         = new SP_Call(_db);
     ShoppingCart    = new ShoppingCartRepository(_db);
     OrderHeader     = new OrderHeaderRepository(_db);
     OrderDetails    = new OrderDetailsRepository(_db);
 }
Ejemplo n.º 4
0
 public UnitOfWork(ApplicationDbContext db)
 {
     _db     = db;
     SP_Call = new SP_Call(_db);
     Song    = new SongRepository(_db);
 }
Ejemplo n.º 5
0
 public UnitOfWork(ApplicationDbContext _db)
 {
     this._db = _db;
     Category = new CategoryRepository(_db);
     SP_Call  = new SP_Call(_db);
 }