Chapter 4. NHibernate Warm-up
After mappings, configuration is another important concept we should learn before we start using NHibernate for storing/retrieving data from database. In this chapter, we would unfold the knowledge of NHibernate configuration.
We will begin with NHibernate configuration that we had briefly looked at in Chapter 2, Let's Build a Simple Application, when we wrote our first unit test. I had asked you to ignore that piece of code then. Well, we will look in detail now what exactly that code did for us. After this elaboration has enlightened us of NHibernate configuration, we will look at different ways in which NHibernate can be configured. That will be followed by important and commonly used configuration options that we, as a developer, should be aware of. Towards the end of the chapter, we will look at a feature offered by NHibernate that is capable of generating database creation/update scripts by inspecting the mappings declared.
There are no unit...