Note: this was orginally posted on my own blog Ahh, i'm finally able to use NHibernate again at work, so expect more NHibernate related posts in the future :) Today i needed a way to add some functionality when NHibernate opens a database connection, and again when NHibernate closes the connection...