I want to log the differences when a user updates an Entity Framework Object (any differences in the whole object graph). I'm a stuck with using version 5 of EF in this particular project for now.
For Each Say it is a customer with a list of orders. I want to output what has changed in a customer field (e.g. like total number or orders changed from 4 to 5). Then output what changed in each order (like order one status changed from ordered to delivered, and order 5 was added).
So Log would look something like this Customer Modified ID =5, Field TotalNumberOfOrders: Orginal Value 4, New Value 5 Customer.Order Added ID = 10 Customer.Order Modified Field Quanity: Origanl Value = 15, New Value = 2
I'm just going to log these values to disk for some diagnostics.