title: how do i check if property actually change before an update
body: <p>I am using EF 5 (not 6). I have an object of below class and it is in DB using EF.</p>
  
  <pre><code>public class Student
  {
    public string Name { get; set; }
    public int Age { get; set; }
    public DateTime DOB { get; set;}
  }
  </code></pre>
  
  <p>Later on, </p>
  
  <p>I got request to make an update to same object / record.</p>
  
  <p>But before making update call , i would like to cross compare whether property actually changed because i may get the same record for an update so don't want to make blind update. </p>
  
  <pre><code> var student = _context.Students.select(x =&gt;x.Name == "").first();
   student.name = "";
   student.age = "";
   student.DOB = "";
  _context.Entry(student).State = EntityState.Modified;
  _context.saveChanges();
  </code></pre>
  
  <p>Does EF gives me some built in way to this? </p>
  
  <p>Or, I need to cross compare each property one by one and decide? I can have 20 properties ...</p>
  
  <p>Any idea please?</p>