O'Reilly logo

NHibernate in Action by Tobin Harris, Pierre Henri Kuaté, Gavin King, Christian Bauer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required