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
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?
public void UpdateTrackedEntity<T>(T modifiedEntity) where T : class
{
var set = CreateObjectSet<T>();
set.ApplyCurrentValues(modifiedEntity);
}