title: Entity Framework AutoDetectChangesEnabled = false and .Find
body: <p>Recently I've found about option AutoDetectChangesEnabled in EF, and in official documentation it is stated that manually handling AutoDetectChangesEnabled could cause "subtle bugs".</p>
  
  <p>As I understand things could go wrong when saving changed entities to database, so my question is: is this piece of code safe (By default, the Entity Framework performs Detect Changes automatically when Find is called):</p>
  
  <pre><code>using (var context = new DbContext())
  {
      context.Configuration.AutoDetectChangesEnabled = false;
      var user = context.users.Find(id);
      context.Configuration.AutoDetectChangesEnabled = true;
  
      return user;
  }
  </code></pre>
  
  <p>So, as you can see, I'm not making any changes to my entities, just returning them, and if AutoDetectChangesEnabled is set to false will Find still hit Cache firstly and then database ?</p>