But thats the reason we use IPreUpdateEventListener, that listener acts only if the entity really changed. NHibernate Unit of Work figures out if it has to update the entity (because nhibernate keeps a copy of the values somewhere, this is the mechanism)
Anyway if you change the value of a property, nhibernate will update the row when flushing the session, don't get confused with Session.Update (this method is for reattach). NHibernate does the update implicitly. 2011/1/15 ulu <[email protected]> > The other reason is more important IMO. I believe I should go the > inheritance path and check for stuff like IsUpdateNecessary, right? > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
