title: "The property 'Modified' is part of the object's key information and cannot be modified
body: <p>I am trying to change a field in my row using EF 6.1 and I am receiving the following error:</p>
  
  <blockquote>
    <p>The property 'Modified' is part of the object's key information and
    cannot be modified.</p>
  </blockquote>
  
  <p>However modified is not the Primary Key, nor part of any compound PK.</p>
  
  <p>however it is part of my search conditions.</p>
  
  <pre><code>var item = _src.Items.Where(x =&gt; x.Modified).OrderBy(x =&gt; x.DateModified).FirstOrDefault();
   ...
   MarkItemAsSynced(item)
  
  
      private void MarkItemAsSynced(Item item)
      {
          item.Modified = false;     
          _src.SaveChanges();        &lt;&lt;&lt;&lt; ERROR THORWN
      }
  </code></pre>
  
  <p>What could be causing this issue?</p>
  
  <p>Just to confirm again, The Item `Modified' is NOT the PK. </p>
  
  <p>The Table does have a defined PK.</p>
  
  <p>Model Class:</p>
  
  <pre><code>    public partial class Item
      {
          public int Id { get; set; }
          ...
          public bool Modified { get; set; }            
      }
  }
  </code></pre>