There's no such thing as marking an entity as clean. Dirty checking is done by comparing the loaded values to the existing values.
I guess you could modify the value in an IPreLoadEventListener (or an IInterceptor) instead. /G 2013/11/13 Sid Shetye <[email protected]> > How do I mark an entity as "clean" immediately after modifying any of it's > properties inside on the handlers (eg: PostLoadEvent handler)? > > In the application code we modify DateTime properties for legacy reasons > (inside the Post Load Event handler) but don't want this modification to > the entity to trigger a write back in OnFlushEntity(). FYI, We do want to > track the entity after this instant (modify + reset as clean) to track any > changes from that point on. > > PS: I did see someone asking a similar question but that question had no > responses; therefore this question. > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/nhusers. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/groups/opt_out.
