sql - How to know query generated by Fluent NHibernate -


I'm setting fire to some of the selected queries in the data base to use linber to Nibernate.

My question is, how do I know that voluntary queries generated by NHibernate?

If you want SQL log4net, make sure that you have set the logger in your configuration section .

I put the NHibernate package in "INFO" to reduce noise and NHibernate.SQL so that I can log all the SQL statements.

 & lt; Logger name = "NHibernate"> & lt; Level value = "INFO" /> & lt; / Logger & gt; Name of the logger = "NHibernate.SQL"> & lt; Level value = "ALL" /> & lt; / Logger> 

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -