In this chapter, we will cover the following topics:
Configuring NHibernate with App.config
Configuring NHibernate with hibernate.cfg.xml
Configuring NHibernate with code
Configuring NHibernate with Fluent NHibernate
Configuring NHibernate using ConfORM Mappings
Configuring NHibernate logging
Reducing application startup time
Generating the database
Scripting the database
Using NHibernate Schema Tool
Introduction
NHibernate provides an incredible number of configuration options and settings. The recipes in this chapter demonstrate several methods for configuring NHibernate and generating the necessary database schema.