title: Update related data when AutoDetectChangesEnabled = false
body: <p>I'm trying to update a simple model:</p>
  
  <pre><code>public class DayOff
      {
          public int Id { get; set; }
  
          public List&lt;User&gt; Users { get; set; }
  
          public DayOff()
          {
              Users = new List&lt;User&gt;();
          }
      }
  </code></pre>
  
  <p>my service layer is:</p>
  
  <pre><code>public void Update(DayOff dayOff, IEnumerable&lt;int&gt; users)
  {
      var dayOffToUpdate = _db.DayOff.Include("Users").Single(d =&gt; d.Id == dayOff.Id);
      dayOffToUpdate.Users.Clear();
  
      _db.Entry(dayOffToUpdate).CurrentValues.SetValues(dayOff);
  
      dayOffToUpdate.Users = _db.User.Where(u =&gt; users.Contains(u.Id)).ToList();
  
      foreach (var user in dayOffToUpdate.Users)
      {
          _db.Entry(user).State = EntityState.Modified;
      }
  
      _db.SaveChanges();
  }
  </code></pre>
  
  <p>but it is NOT updating the users, so how can I?</p>