开发者

How to check query statement in Linq to NHibernate?

开发者 https://www.devze.com 2022-12-14 05:48 出处:网络
I\'d like to see sql query once linq to nhibernate query is executed to log 开发者_开发问答or check sql query.

I'd like to see sql query once linq to nhibernate query is executed to log 开发者_开发问答or check sql query. How can I do?


You could either configure log4net or use an SQL Profiler to see what's actually sent to the database. Yet another option (if you are willing to spend a few bucks) is to checkout Ayende's excellent tool.


Use SQL Profiler.

0

精彩评论

暂无评论...
验证码 换一张
取 消