Chapter 2. Hello NHibernate!

This chapter covers

  • NHibernate in action with a “Hello World” application
  • How to architecture an NHibernate application
  • Writing and mapping a simple entity
  • Configuring NHibernate
  • Implementing primitive CRUD operations

It’s good to understand the need for object/relational mapping in .NET applications, but you’re probably eager to see NHibernate in action. We start by showing you a simple example that demonstrates some of its power.

As you’re probably aware, it’s traditional for a programming book to start with a “Hello World” example. In this chapter, we follow that tradition by introducing NHibernate with a relatively simple “Hello World” program. But printing a message to a console window won’t be enough ...

Get NHibernate in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.