You asked several different things: - How to prevent NHibernate performing updates (?); - How to do versioning.
If you want to do versioning, you have several built-in strategies. For auditing, you should use Envers. RP On Friday, November 27, 2015 at 10:47:12 PM UTC, Jeffrey Becker wrote: > > Have you looked at envers <http://envers.bitbucket.org/>? > > On Friday, November 27, 2015 at 6:38:00 AM UTC-5, Reto Dalai lama wrote: >> >> How to prevent NHibernate perform updates on Entities? >> >> >> In my opinion it should act like fileversion on Windows or VisualStudio >> file history. >> >> >> In our solution we have Masterdate which must be versioned after every >> update.So i think it must save a new item with a version +1 on database. >> >> >> I know the mutable property in hbm mapping. Eventually it is the goal to >> catch the canceled updating entity and create a new insert entity. But i >> dont find any nhibernateevent or example how this can be work. >> > -- 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/d/optout.
