public void Update(TEntity tEntity) { _dbSet.Attach(tEntity); _dbContext.Entry(tEntity).State = EntityState.Modified; }