title: Entity Framework Code First Update by Stub Entity
body: <p>Is it possible in EF Code-First to update without querying the entire row in db by using stub objects,...</p>
  
  <p>e.g.</p>
  
  <pre><code>public class Dinner 
  {     
      public int DinnerID { get; set; }     
      public string Title { get; set; }     
      public DateTime EventDate { get; set; }     
      public string Address { get; set; }     
      public string Country { get; set; }     
      public string HostedBy { get; set; }       
  }
  
  
  
  Dinner dinner = dinner.DinnerID = 1;     
  dinner.HostedBy = "NameChanged" 
  nerdDinners.SaveChanges();
  </code></pre>
  
  <p>will the code above create an Update Statement which will make the following columns null for the row of DinnerID 1 ?</p>
  
  <blockquote>
    <p>Title, EventDate, Address, Country</p>
  </blockquote>
  
  <p>Is there a way or method like "PropertyModified" = true, then the rest make them = false, so that HostedBy is the only one that will be updated?</p>