This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I have been through the support threads relating to the ChangeTracker regarding the configuration at the UOW level and can not seem to find an answer if this has been implemented or not, I am using LS5 What I am trying to achieve is an audit log system where the following is collected from UOW and then logged into the database Entity Name Id (of the changed entity) PropertyName OldValue NewValue I have been playing with the enumeration on the UOW but this only works if the ChangeTracker is turned on for each entity. Cheers and thank you in advance. Mike. |
|
|
Hi Mike, You will need to enable change tracking to achieve this but rather than enumerating the UOW you could have this handled via the Enlisted event on the UnitOfWork which will be triggered for each entity when SaveChanges is called. If I am reading your intent correctly you wish to audit all field level changes as they are committed? If that sounds right have a read through this thread http://www.mindscapehq.com/forums/thread/342487 which gives an example of the event and then you can implement your auditing logic within a callback wired up to that event. You will probably want to use an independent UOW to perform the logging.
|
|