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

Use mapping conventions

Fluent NHibernate uses a lot of conventions to map our domain model to a database schema. All of these conventions make sense in most of the day-to-day projects. Sometimes, it is important that we are able to add our own conventions to the mapping process, or even replace existing conventions with our own specific implementations. Fluent NHibernate is very flexible in this regard and offers us the possibility to fine-tune the system.

Conventions are added to the system during initialization, that is, before the mappings are processed. In Chapter 8, which talks about configuration, we will discuss how to add conventions in detail.

ID conventions

During the definition of the mappings for our ordering system domain, you might ...

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