I use Nhibernate 2.0 in ASP.NET. I start the transaction at the begging of the page and commit the transaction at the end. During the page: - I get an object - I change the object property - I validate the object - if validation is ok I call save-update on that object - if validation is wrong i don't make any call to save-update on that object - I always commit the transaction at the end of page.
The problem is that also when the validation is wrong and i dont make any call to save-update on the object the commit transactin commit the change in the DB.
I set the FlushMode to Never but nothig change.
Have suggestion? What I mistake?