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

Creating the database schema

We have defined a model for our problem domain and have defined the necessary information that NHibernate needs to map the model to an underlying database. Now we need to create this database. However, we do not want to handcraft the database schema, but rather let NHibernate create the database schema for us. The only thing we need to do manually is create a new empty database.

NHibernate will use the meta information we provided via the definition of the mapping classes to create an appropriate database schema.

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