开发者

How to check query statement in Linq to NHibernate?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜