title: Entity Framework update DB problem when use AutoDetectChangesEnabled=false
body: <p>I use Entity Framework and stored procedures.</p>
  
  <pre><code>modelBuilder.Entity&lt;MyModel&gt;().MapToStoredProcedures();
  </code></pre>
  
  <p>I used Insert update and delete without any problem.but for some purpose I want to use <code>AutoDetectChangesEnabled = false;</code></p>
  
  <p>After that entity doesn't work anymore and nothing changes in the database after <code>SaveChanges</code>. But when I comment <code>AutoDetectChangesEnabled</code> or set it to true, it works fine.</p>
  
  <p>This is my code: I read from Excel and import into database:</p>
  
  <pre><code>dt = exc.ReadExcel(address, ".xlsx");
  
  using (var db = new Context())
  {
      db.Configuration.AutoDetectChangesEnabled = false;
  
      for (int i = 1; i &lt; dt.Rows.Count; i++)
      {
          int id = int.Parse(dt.Rows[i][0].ToString());
  
          var thisChah = db.MyModel.Find(id);
  
          if (thisChah == null)
          {
              continue;
          }
  
          thisChah.f1 = dt.Rows[i][1].ToString();
          thisChah.f2 = dt.Rows[i][2].ToString();
          thisChah.f3 = dt.Rows[i][3].ToString();
          thisChah.f4 = dt.Rows[i][4].ToString();
          thisChah.f5 = dt.Rows[i][5].ToString();
          thisChah.f6 = dt.Rows[i][6].ToString();
          thisChah.f7 = dt.Rows[i][7].ToString();
  
          LogsAnyThing("row " + i + "- OK ");
  
          if(i % 50 == 0)
          {
              int result = db.SaveChanges();
  
              if (result &gt; 0)
              {
                  LogsAnyThing("row " + i + "- Added ");
              }
          }
      }
  
      db.SaveChanges();
  }
  </code></pre>