You can have a look at the Code by Ayende (below link), where he
calculates the number of statements executed per request using an
Appender, while this still uses log4net, you will have programmatic
access to the generated sql.

http://github.com/ayende/rhino-tools/blob/master/commons/Rhino.Commons.NHibernate/HttpModules/EnsureMaxNumberOfQueriesPerRequestModule.cs

Regards
Dinesh

On Nov 20, 2:37 pm, bstack <[email protected]> wrote:
> All,
>
> Is there an easy way to programmatically get at the generated SQL as
> opposed to having to use show_sql or use log4net?
>
> Cheers
> Billy Stack

--

You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=.


Reply via email to