public Repository(AplicacaoContext context) { _dbSet = context.Set <T>(); }
public virtual TEntity Adicionar(TEntity entity) { _dbContext.Set <TEntity>().Add(entity); _dbContext.SaveChanges(); return(entity); }
protected Repository(AplicacaoContext context) { _context = context; DbSet = _context.Set <TEntity>(); }