title: How to update not every fields of an object using Entity Framework and EntityState.Modified
body: <p>I need to update all fields except property1 and property2 for the given entity object.<br>
  Having this code:  </p>
  
  <pre><code>    [HttpPost]
      public ActionResult Add(object obj)
      {
          if (ModelState.IsValid)
          {
                  context.Entry(obj).State = System.Data.EntityState.Modified;
  
                  context.SaveChanges();               
           }
          return View(obj);
      }
  </code></pre>
  
  <p>How to change it to add an exception to obj.property1 and obj.property2 for not being updated with this code?  </p>