Using NHibernate 2.0:
I have an object with some changes on it and I am about to session.Update() it. Is there some way I can preview the SQL that will be executed without actually executing it?
Using NHibernate 2.0:
I have an object with some changes on it and I am about to session.Update() it. Is there some way I can preview the SQL that will be executed without actually executing it?
Hi!
Why would you want to do that? You can show it by the show-sql setting, but it will be executed also. You could use NHibernate againt an in-memory database like SQLite if you want to test the mapping ;)
Best Regards
Oliver Hanappi
You could wrap a transaction around the session and perform the update without committing.