Factory and Sessions

Topic updated 11-10-2007

To successfully write custom code that uses a BO-Layer generated by the GenWise NHibernate Templates it's important to understand some NHibernate concepts built into the GenWise Factory classes.

NHibernate works with Sessions which provide a scope for the instantiation of business objects and all actions performed on them. The Factory classes generated by GenWise encapsulate NHibernate Sessions and NHibernate Transaction. Learn more about this by reading Using transactions on the BO-Layer.