nHibernate layer for accessing tables in the IMS portals