public Repository(EstoqueContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); _dbSet = _context.Set <T>(); }
public UnitOfWork(EstoqueContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }