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

Blindly relying on NHibernate

NHibernate is a very helpful tool and makes the lives of us developers much easier when we have to deal with data that is persisted in relational databases. However, NHibernate is and remains only a tool. NHibernate is designed in such a way that it uses one of the best strategies to access data in most common scenarios. However, if we blindly rely on NHibernate to always use the best possible strategy, then we will be surprised.

A lot of scenarios exist where NHibernate just cannot make the right decision for us. In such situations, we have to "help" the tool and give it some context-specific hints.

A possible scenario is where we want to retrieve a list of parent entities, each having a collection of child entities. ...

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