How to obtain NHibernate generated SQL in code at runtime?

前端 未结 3 1428
-上瘾入骨i
-上瘾入骨i 2021-02-04 15:30

I know you can view the NHibernate generated SQL by hooking it up to log4net or piping it out to the console (\"show_sql\" option), but is there any way to obtain the generated

3条回答
  •  遥遥无期
    2021-02-04 15:35

    In the past, I was able to view the code generated and sent to SQL by hibernate via the SQL Profiler tool. Depending on your goals, it may be able to provide what you need.

提交回复
热议问题