title: Finding the Changeset in Entity Framework
body: <p>I am using EF4 repositories in a ASP.NET MVC3/WCF application. I am using the Unit of Work pattern to apply changes to the database</p>
  
  <p>One of the user requirements is to create a ticket/email with a list of changes to the entity. Is there a way I can detect only the changed properties on an entity in the following function? </p>
  
  <pre><code>public void UpdateTrackedEntity&lt;T&gt;(T modifiedEntity) where T : class
  {
      var set = CreateObjectSet&lt;T&gt;();
      set.ApplyCurrentValues(modifiedEntity);
  }
  </code></pre>