Raw SQL Queries with NHibernate

Posted by & filed under NHibernate.

If you want to execute a native SQL query and don’t care about the result, just grab the ADO.NET database connection from the NHibernate session and use that to run the query. Here’s the code: