Translating NHibernate LINQ query to SQL

added by DotNetKicks
9/1/2020 5:03:12 PM

386 Views

When working with stateless sessions in NHibernate we need some way to see generated SQL but we cannot use simple tricks as custom NHibernate interceptor to log SQL queries. As I'm using mostly NHibernate LINQ these days I was interested in how to get SQL out from LINQ query without actually executing it.


0 comments