From ICriteria, is it possible to get a string containing SQL that NHibernate plans to execute? I know that you can get a trace, but I was wondering if there is a method that can be called that generates SQL (for example, so you don't really need to hide the database).
source
share