Ok, first, I must reiterate that DO4 is the best thing since sliced bread. It truly is remarkable what you guys have created. Second, I've read the blog post about AuditLogging. It's great. What I'd like to do, though, is capture the specific changes that were made to persistent fields. Ideally, I'd like to present a UI that shows the transactions that modified an entity and show the previous and new field values. I've read the suggestion about using OperationCapturer to do this. Is this the best approach? Could you please provide more guidance on how to do this exactly in a way that is efficient? Do you plan to provide such an implementation by default at some time soon? Seems like it would be quite useful for most DO4 usages. Thank you! This thread was imported from our support forum. The original discussion may contain more detailed answer. |
> Is this the best approach? Yes, most likely. An alternative in WPF/WF applications is usage of DisconnectedState clone containing only the original state:
Issues:
> Could you please provide more guidance on how to do this exactly in a way that is efficient? In simplest case I'd use a dictionary with "Entity.PropertyName" key + some high-level API allowing to access old values (e.g. Entity.GetOriginalProperty(...) extension method complementaty to existing ones). Some issues I see:
|