O'Reilly logo

NHibernate 3 Beginner's Guide by Gabriel N. Schenker

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

Summary

In this chapter, we discussed various possibilities to map our domain to an underlying database.

Specifically, we covered:

  • The different types of mappings that exist
  • How we map entities and their properties to database tables and table columns
  • The possibility to influence the mapping process by defining new, or override existing specifications of the mapping framework
  • How we can avoid defining explicit mappings altogether
  • Using NHibernate to create a SQL schema creation script

Now that we have defined our domain and mapped it to a database, we can move on to discuss the session and transaction objects, which are used to communicate to the database when storing and/or retrieving data.

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