In this recipe, I'll show you how we can inject services into our entities to separate implementation details from our real business logic.
uNHAddIns.CommonServiceLocatorAdapters.dll from the Unofficial NHibernate AddIns project at http://code.google.com/p/unhaddins/.
CommonServiceLocator.NinjectAdapter.dll from the Ninject project at http://ninject.org.
Microsoft.Practices.ServiceLocation.dll from the Microsoft Patterns and Practices team available at http://commonservicelocator.codeplex.com/.
Put these three assemblies in your solution's