public UnitOfWork(ApplicationDbContext dbContext) { _dbContext = dbContext; Category = new CategoryRepository(_dbContext); Frequency = new FrequencyRepository(_dbContext); Service = new ServiceRepository(_dbContext); }
public UnitOfWork(ApplicationDbContext db) { _db = db; Category = new CategoryRepository(db); Frequency = new FrequencyRepository(db); Service = new ServiceRepository(db); OrderHeader = new OrderHeaderRepository(db); OrderDetail = new OrderDetailRepository(db); }
public UnitOfWork(ApplicationDbContext db) { _db = db; Category = new CategoryRepository(_db); Frequency = new FrequencyRepository(_db); Product = new ProductRepository(_db); OrderHeader = new OrderHeaderRepository(_db); OrderDetails = new OrderDetailsRepository(_db); }
public UnitOfWork(ApplicationDbContext db) { _db = db; Category = new CategoryRepository(_db); Frequency = new FrequencyRepository(_db); Service = new ServiceRepository(_db); OrderHeader = new OrderHeaderRepository(_db); OrderDetails = new OrderDetailsRepository(_db); StoredProcedure_Call = new StoredProcedure_Call(_db); }
public UnitOfWork(ApplicationDbContext context) { _context = context; Category = new CategoryRepository(context); Frequency = new FrequencyRepository(context); Service = new ServiceRepository(context); OrderHeader = new OrderHeaderRepository(context); OrderDetails = new OrderDetailsRepository(context); User = new UserRepository(context); }
public UnitOfWork(ApplicationDbContext dbContext) { this.dbContext = dbContext; Category = new CategoryRepository(dbContext); Frequency = new FrequencyRepository(dbContext); Service = new ServiceRepository(dbContext); User = new UserRepository(dbContext); OrderHeader = new OrderHeaderRepository(dbContext); OrderDetail = new OrderDetailRepository(dbContext); }
public IUnitofWork(ApplicationDbContext db) { _db = db; Category = new CategoryRepository(_db); Frequency = new FrequencyRepository(_db); Service = new ServiceRepository(_db); OrderHeader = new OrderHeaderRepository(_db); OrderDetails = new OrderDetailsRepository(_db); User = new UserRepository(_db); SP_Call = new SP_Call(_db); }
public UnitOfWork(ApplicationDbContext db) { _db = db; Category = new CategoryRepository(_db); Frequency = new FrequencyRepository(_db); }