I’d like to see sql query once linq to nhibernate query is executed to log or check sql query.
How can I do?
I’d like to see sql query once linq to nhibernate query is executed to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.