The NHibernate session architecture
We looked at configuration, sessionFactory
, and session
among other things in the previous section. These three components encapsulate most of the functionality offered by NH. I do not mean this in literal sense. If you look at NHibernate source code, you will see that a lot of NHibernate features are implemented independently of these components. But these components are gateways into using these features.
Following diagram shows how these three relate to each other:
The preceding diagram represents components of a real life application. Layers above Data Access Layer are represented in an abstract way, combining ...
Get Learning NHibernate 4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.