Exemplo n.º 1
0
 /// <summary>
 /// Update entity in database.
 /// </summary>
 /// <param name="entity">Entity to update.</param>
 public virtual void Update(T entity)
 {
     _dbSet.Attach(entity);
     _context.Entry(entity).State = EntityState.Modified;
 }