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

Chapter 11. Common Pitfalls—Things to Avoid

After having learned so much about NHibernate, it is time to think about some scenarios which can lead us to use NHibernate in the wrong way if we do not pay attention and can lead to a system which is unsatisfactory. One of the most obvious side effects of wrong usage or configuration of NHibernate is bad performance. Our application starts to crawl and in some situations even times out.

In this chapter we shall discuss some of the most frequent mistakes developers make when using NHibernate. We will also show how to do it right. The topics discussed are:

  • Avoid mappings that are too verbose or inefficient
  • Wrong mapping for read-only access
  • Never blindly rely on NHibernate but rather make informed decisions ...

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