Good Afternoon,
I'm looking to expand my application to perform some better logging. One thing I've done is implement a Log Writer in the Save Interceptor and this will work fine.
Right now, however, I'm trying to write entity changes to the database (think "User Name / Change Type / Before / After"). The User Name is easy enough, as is the change type (EntityState). But, I'm trying to capture Before and After now.
If I have an entity, say, "Property", that appears in a call to the EntityManager.FindEntities(EntityState.Modified) method, I get a collection of entities back. But, how is the best way to determine if the "Address" field or the "Phone Number" field has been modified? And, if I can determine it, is there a way to get a before and after state?
Looking through the documentation didn't give an answer, and I thought that since DevForce has a "Reject Changes" function on the Entity Manager, it MUST be saved somewhere.
Any help would be appreciated.
-Jason