public BaseRepository() { _context = new InventorydbContext(); _dbSet = _context.Set <TEntity>(); }
public BaseRepository(InventoryDBContext context) { _context = context; _dbSet = context.Set <TEntity>(); }