Currently I have some event listeners setup to log all insert/update/delete actions that happen. I just go through the list of properties and build a string to insert into an audit table.
What I'd really like to do is get the raw SQL query that NHibernate generates. Just like what NHProf shows.
How would I do this?