I am using Visual Studio 2010 with NHibernate 3.1 and using Fluent NHibernate for mapping. It has been working well, and with the ShowSql enabled it shows all the select queries.
I have gotten to the portion of the program where I am performing some updates, but they don’t show. At first I thought the updates weren’t getting triggered even though i was using an explicit transaction – but the data was getting changed in the database. So – somehow, the queries are being executed, but not shown in the Output window of Visual Studio.
Any ideas?
Edit
It turns out I was mixing two answers together. Log4Net is not needed at all to produce UPDATE statements from NHibernate in the output window.
Setting AdoNetBatchSize(0) in conjunction with ShowSQL DID resolve the problem.
May I suggest you give NHibernate Profiler a try. I’ve been using it for the last year or so and it has proved invaluable. It will show you all the queries in a very useful way. You could just use the 30 day trial to solve your problem.