You're testing the wrong thing. The entity will be flushed. That doesn't mean that it will be updated. It means that it will be dirty checked and *possibly* updated.
/G 2013/11/18 Sid Shetye <[email protected]> > Hi folks, > > I've created a self-sufficient test project in GIT at > https://github.com/sidshetye/NHMarkEntityClean which demonstrates this > issue. The local database etc is all setup, you can simply run it and see > the phantom FlushEvent being called on the entity when it shouldn't have > (because we just reset it properly). > > The user-level listener code at > https://github.com/sidshetye/NHMarkEntityClean/blob/master/NHListeners.csseems > simple to me - not sure what the problem is ... because > OnFlushEntity() still gets called on this now "unchanged" entity. Either > we're not resetting the entity properly or NHibernate's clean/dirty check > has a bug in it. > > Any ideas on this puzzle? > > > > > > > -- > 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.
