I know how to enable debugging so all queries that get run appear in my console. Is there any way to simply output the generated query without executing it?
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.
Nope, you can’t. NHibernate wouldn’t know what to return as a result of the query method if it didn’t execute the actual SQL against an actual database. For example:
The method has to return some collection of clients, and if ActiveRecord/NHibernate didn’t send the SQL to the database it wouldn’t know what to return.