Detect which properties changed on an Entity Framework EntityObject

Viewed 4059

I want to read changes within an EntityObject for inclusion in a report.

For example:

Name: Before After

Location: Before After

Is there a generic way to do this? I'm using EF4 with default entity class generation (not POCO).

These entities will be attached, so they should be being tracked for changes. I cannot see a means to do this via the IEntityWithChangeTracker interface.

Traversing navigation properties would be nice, but it'd be enough of a win to just report upon changed primitive properties.

2 Answers
Related