Chapter 9. Advanced Data Access Patterns

We are coming to the end of our NHibernate learning experience. This is not the last chapter but the chapters after this are a bit disconnected from our journey so far. Previous chapters should have given you solid understanding of how to use NHibernate in a real-life application. We learned an important design pattern such as repository and other useful design principles. But we closed the chapter saying repository pattern has some downsides. In this chapter, we would dig deeper into that statement and try to understand what those downsides are and what can be done about them. In our attempt to address the downsides of repository, we would present two data access patterns, namely specification pattern ...

Get Learning NHibernate 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.