Constructor dependency injection with NHibernate 2.1 and StructureMap -
I have read somewhere that NHibernate 2.1 supports manufacturer dependency injection for its entites.
How do I go about structural map and NHBnet 2.1 configuration to get it?
I know this is an old question, but if it can be useful
< P> Edit: The original post links were not effective for NHib 2.1, got better information.For NHibernate 2.1, you can create an interceptor and override the instantiate method and create your container. Your example is there
If you want to eject the property instead You can use the same technique, but instead you can do your work in the onload method.
Comments
Post a Comment