Logging NHibernate SQL queries

后端 未结 4 1091
执笔经年
执笔经年 2021-02-07 14:25

Is there a way to access the full SQL query, including the values, inside my code?

I am able to log SQL queries using log4net:



        
4条回答
  •  春和景丽
    2021-02-07 14:57

    Either use sql profiler or have a look at nhprof at http://nhprof.com/

    Both will let you see sql output.

    Also set the show_sql property in hibernate config file

    true
    

提交回复
热议问题