8

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

Afshar Mohebi
  • 10,479
  • 17
  • 82
  • 126
  • 2
    Exactly? http://bit.ly/deqOr7 – Arnis Lapsa Sep 30 '10 at 08:41
  • @Arnis L., would you please comment long url please? Our ISP has problems with sites like bit.ly – Afshar Mohebi Sep 30 '10 at 09:07
  • 1
    just pointing to source code of nhibernate. Actually - it has pretty decent Session description. Here's full URL: http://nhibernate.svn.sourceforge.net/viewvc/nhibernate/trunk/nhibernate/src/NHibernate/ISession.cs?revision=5228&content-type=text/plain – Arnis Lapsa Sep 30 '10 at 11:38
  • @Arnis L., this link leaned good point about `ISession`. Why you don't provide it as a answer not a comment? – Afshar Mohebi Oct 02 '10 at 08:16
  • 1
    because it was supposed to be a joke until I realized that it actually provides quite a lot of information. :) – Arnis Lapsa Oct 02 '10 at 15:59

1 Answers1

9

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

Kent Boogaart
  • 175,602
  • 35
  • 392
  • 393