Example #1
0
 public UnitOfWork(ApplicationDbContext db)
 {
     _db      = db;
     Category = new CategoryRepository(_db);
     SP_Call  = new SP_CALL(_db);
 }
Example #2
0
 public UnitOfWork(ApplicationDbContext db)
 {
     _db                 = db;
     Category            = new CategoryRepository(_db);
     StoredProcedureCall = new StoredProcedureCall(_db);
 }
Example #3
0
 public UnitOfWork(ApplicationDbContext _db)
 {
     this._db = _db;
     Category = new CategoryRepository(_db);
     SP_Call  = new SP_Call(_db);
 }
Example #4
0
 public ExtendedUnitOfWork(ApplicationDbContext dbContext)
 {
     _dbContext = dbContext;
     Category   = new CategoryRepository(_dbContext);
     CoverType  = new CoverTypeRepository(_dbContext);
 }
Example #5
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context  = context;
     Category  = new CategoryRepository(_context);
     CoverType = new CoverTypeRepository(_context);
 }