How to know query generated by Fluent NHibernate

后端 未结 8 1432
萌比男神i
萌比男神i 2020-12-30 00:07

I am using linq to Nhibernate to fire some select query to data base.

My question is, how do I know, the query generated by Fluent NHibernate?

8条回答
  •  误落风尘
    2020-12-30 00:38

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

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

      
     
       
     
    
    
      
        
      
    
    

提交回复
热议问题