What is NHibernate session exactly?

Afshar Mohebi picture Afshar Mohebi · Sep 30, 2010 · Viewed 10.2k times · Source

It's a long time I'm working with NHibernate session through frameworks like Castle ActiveRecord but never understood what is a session exactly and how should manipulate. Can anybody help? Is there any concise resource?

Thanks in Advance

Answer

Kent Boogaart picture Kent Boogaart · Sep 30, 2010

The NHibernate session encapsulates a unit of work as specified by the unit of work pattern.