This chapter is different from most of the other chapters in the book. Instead of being somewhat abstract, this one will be pretty much hands-on. What we will do here is apply what was discussed in Chapter 8, "Infrastructure for Persistence," by using NHibernate [NHibernate] as an example of a Persistence framework. This chapter starts with an introduction to NHibernate, including how to get started, how to deal with the mapping, and what the API looks like. Then we will position NHibernate regarding the classifications discussed in Chapter 8, and we'll also take a look at how NHibernate implements the infrastructure patterns discussed in the previous chapter. This chapter ends with a discussion of how NHibernate fits in the big picture of DDD. |