Hello All,
I'm a newbie with NH, and I was wondering if someone could point me towards some documentation on the topic of dirty objects.
My understanding is that the session serves as the 1st level cache of objects for NH. Some of these objects (which are just in memory CLR objects) might be dirty (ie. have had they're member data changed) and some may not.
My question is: how does does NH know which objects are dirty, and which are not, which it comes time to flush the session?
It could keep a list of dirty objects, but unless there is some magic interception going on (for example through proxies) or it is somehow comparing every property of an object with a shadow copy original that it keeps (which presumably would be terrible for performance) I'm not sure how this would work - unless it writes out every object in the session, which I haven't observed.
Any pointers to documentation or information is most appreciated. Thanks to all.
|