In this chapter, we will cover the following topics:
Transaction Auto-wrapping for the data access layer
Setting up an NHibernate repository
Using Named Queries in the data access layer
Using ICriteria in the data access layer
Using Paged Queries in the data access layer
Using LINQ specifications in the data access layer
Introduction
There are two styles of data access layer common in today's applications. The first recipe shows the beginnings of a typical data access object. The remaining recipes show how to set up a repository-based data access layer with NHibernate's various APIs.