title: Does entity framework compare assigned values with original to determine IsModified flag?
body: <p>If I load entity object and then assign one of properties to the same value as it had before, does framework detect changes or it would set IsModified flag to true anyway ?</p>
  
  <p>This is how generated code for field Name looks like:</p>
  
  <pre><code>OnNameChanging(value);
  ReportPropertyChanging("Name");
  _Name = StructuralObject.SetValidValue(value);
  ReportPropertyChanged("Name");
  OnNameChanged();
  </code></pre>
  
  <p>I don't know which of those events set IsModified flag for that field and for the whole entity.</p>