Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is NHibernate session exactly?

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

like image 815
Afshar Mohebi Avatar asked Sep 30 '10 08:09

Afshar Mohebi


People also ask

What is NHibernate dialect?

The dialect property specifies a dialect class that NHibernate uses to build SQL syntax specific to a Relational Database Management System (RDBMS). We're using the Microsoft SQL 2012 dialect. Additionally, most dialects set intelligent defaults for other NHibernate properties, such as connection. driver_class .


1 Answers

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

like image 129
Kent Boogaart Avatar answered Sep 21 '22 03:09

Kent Boogaart