Named Queries encapsulated in query objects is a powerful combination. In this recipe, I'll show you how to use Named Queries with your data access layer.
Download the latest release of the Common Service Locator from http://commonservicelocator.codeplex.com, and extract
Microsoft.Practices.ServiceLocation.dll to your solution's
Complete the previous recipe, Setting up an NHibernate repository.
Following the Fast testing with SQLite in-memory database recipe in Chapter 5, create a new NHibernate test project named
Eg.Core.Data.Impl assembly as an additional mapping assembly in your test project's
App.Config with the following xml:
<mapping assembly="Eg.Core.Data.Impl"/> ...