title: Update EF 4 Feature CTP 4 Detached POCO
body: <p>I am trying to update a detached POCO w/ EF 4 CTP 4.</p>
  
  <p>My domain class looks like this:</p>
  
  <pre><code>public class User {
    public int Id { get; set; }
  
    [Required, DisplayName("First Name")]
    public string FirstName { get; set; }
  
    [Required, DisplayName("Last Name")]
    public string LastName { get; set; }
  
    [ConcurrencyCheckAttribute, Timestamp]
    public byte[] DataVersion { get; set; }
  }
  </code></pre>
  
  <p>In the repository I have the following:</p>
  
  <pre><code>public void SaveUser(User user) {
    if (user.Id &gt; 0) {
     dbContext.Users.Attach(user);
    }
    else {
     dbContext.Users.Add(user);
    }
    dbContext.SaveChanges();
  }
  </code></pre>
  
  <p>dbContext inherits from DbContext.</p>
  
  <p>I am able to do inserts fine, but the attach doesn't work. I run Sql Profiler, and no sql is sent for the update. </p>