Example code for using NHibernate