Get executed SQL from nHibernate

前端 未结 3 1673
青春惊慌失措
青春惊慌失措 2021-01-02 14:15

I am using nHibernate ICriteria to execute a query, and I would like to be able to get the SQL that was executed after the statement runs. So for example I have something li

3条回答
  •  半阙折子戏
    2021-01-02 14:51

    Personally I use the "NHibernate Profiler" tool for this. It's well worth the price since it also does a good job analyzing your usage of NHibernate and noticing potential problems.

提交回复
热议问题