I'm currently using NHibernate 3.1 in a ASP.Net application and got it working pretty well (with Fluent). I managed to make it log all generated SQL queries to my output tab while debugging by using the following snippet in Application_Start:
private static DebugTextWriter _writer;
protected virtual void Application_Start(object sender, EventArgs e)
{
_writer = new DebugTextWriter();
Console.SetOut(_writer);
}
I recently upgraded NHibernate from 2.1 to 3.1 and now my update and delete statements are no longer being output to the to log...
Do you guys have any idea why?
Thanks
.ShowSql()
in your cfg code – Rippo