title: EF Core 3.1 Update Entity
body: <p>I want to update my entity using EF Core. Which one of these 2 approaches is more efficient and better to use.</p>
  
  <pre><code>Context.Entry(entity).State = EntityState.Modified
  Context.SaveChanges();
  </code></pre>
  
  <p>and the next one is </p>
  
  <pre><code>var exist = entities.Find(entity.Id);
  Context.Entry(exist).CurrentValues.SetValues(entity);  
  Context.SaveChanges();
  </code></pre>
  
  <p>both of theme do the job but which one is better?</p>