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

Fluent configuration

Personally, I prefer to configure NHibernate in code by using a fluent API. It makes the configuration very readable and self-expressing. Also, when defining the configuration, the individual settings are much more discoverable to the developer executing this task.

Configuring NHibernate with Loquacious

NHibernate contains a new fluent API for configuration. This API is defined in the Loquacious namespace. All aspects of the configuration can be defined by using this API. The configuration in the preceding sample was already very readable, but the usage of the new fluent API will make it even more understandable.

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