Exemplo n.º 1
0
 public UnitOfWork(ApplicationDbContext db)
 {
     _db      = db;
     Category = new CategoryRepository(_db);
     //Category repository ve spcallrepository direk olarak _db nesnesi ister o yüzden verildi.
     CoverType = new CoverTypeRepository(_db);
     SPCall    = new SPCallRepository(_db);
 }
Exemplo n.º 2
0
 public UnitOfWork(ApplicationDbContext db)
 {
     _db             = db;
     Category        = new CategoryRepository(_db);
     Company         = new CompanyRepository(_db);
     Product         = new ProductRepository(_db);
     CoverType       = new CoverTypeRepository(_db);
     ApplicationUser = new ApplicationUserRepository(_db);
     sp_call         = new SPCallRepository(_db);
 }
 public UnitOfWork(ApplicationDbContext db)
 {
     _db             = db;
     Category        = new CategoryRepository(_db);
     sp_call         = new SPCallRepository(_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);
 }