The recipes presented in this book can be combined to build the following types of applications:
To build a complete web application using ASP.NET MVC or MVC 2, first choose a mapping method from the following recipes:
1.1 Mapping a class with XML
1.7 Creating mappings fluently
1.8 Mapping with ConfORM
Choose a configuration method from the following recipes:
2.1 Configuring NHibernate with App.Config
2.2 Configuring NHibernate with hibernate.cfg.xml
2.3 Configuring NHibernate with code
2.4 Configuring NHibernate with Fluent NHibernate
Create your database from the following recipes:
2.8 Generating the database
2.9 Scripting the database
2.10 Using NHibernate Schema Tool
Choose a session management method from the following recipes:
3.1 Setting up session-per-web request
3.3 Creating a session ASP.NET MVC action filter
3.5 Using the Conversation-per-Business transaction pattern
Choose a query method from the following recipes:
4.1 Using Criteria Queries
4.2 Using QueryOver
4.5 Using the Hibernate Query Language
4.7 Using Named Queries
4.10 Using LINQ to NHibernate
Choose a data access layer style from the following recipes:
6.1 Transaction Auto-wrapping for the data access layer (Data Access Objects)
6.2 Setting up an NHibernate repository
Finally, build your ASP.NET MVC application on top of this fully functional data access layer.