Get Object Change Informations

15 views
Skip to first unread message

David Laabs

unread,
Mar 10, 2010, 3:18:17 AM3/10/10
to nhusers
I'd like to know what exactly was changed in my entity-class bevore I
call SaveOrUpdate(myClass). NHibernat must be able to analyze the
changes made to my object an all attached sub-objects.

Is there a way to read-out those change-informations, for example as
xml-stream?

Thanks for any answers...

José F. Romaniello

unread,
Mar 10, 2010, 6:44:18 AM3/10/10
to nhu...@googlegroups.com
Yes there is:


I don't know the part of "all attached sub-objects".

2010/3/10 David Laabs <david...@createctrl.com>

--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To post to this group, send email to nhu...@googlegroups.com.
To unsubscribe from this group, send email to nhusers+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.


José F. Romaniello

unread,
Mar 10, 2010, 6:45:33 AM3/10/10
to nhu...@googlegroups.com
BTW, if you are trying to debug to lookup an unexpected update, this code may help you:




2010/3/10 José F. Romaniello <jfroma...@gmail.com>

David Laabs

unread,
Mar 10, 2010, 11:11:57 AM3/10/10
to nhusers
Thanks José for the "finding-dirty-proberties" solution. That's very
cool :-)

Did anybody already implemented a change-log, something like: Property
"Name" changed from "Davdi" to "David"?

I'd like to have something like that in a xml-stream... A code example
would be great :-)

José F. Romaniello

unread,
Mar 10, 2010, 11:26:51 AM3/10/10
to nhu...@googlegroups.com
maybe you want to use aop...

Are you looking for an in-memory object audit?








2010/3/10 David Laabs <david...@createctrl.com>

--
Reply all
Reply to author
Forward
0 new messages