[ my Blog ] Do you remember this post ? As you can see you can use Dependency Injection even for entities, but what about all others classes needed by NHibernate ? Can you inject something in a custom Dialect or in a custom UserType or UserCollectionType or Listener and all others extensions points ...
Another time I start from : “Program to an interface and not to an implementation” I want have the same approach, I’m using for DAOs, Models, Presenters, Validation, and so on, for my domain. The domain: public interface IEntity <TIdentity>: IEquatable < IEntity <TIdentity>>...