Thursday, November 19, 2009

uNHAddins MultiSessionFactory and Conversation

I have been asked sometimes in the Blog comments, without time to answer, how to configure the conversation to use a MultiSessionFactoryProvider instead of the regular SessionFactoryProvider we use in most of the examples.

The real place to start this is Fabio’s Blog where he talks about the SessionFactory providers.

I took the ideas from there, configured the conversation and made a simple test that has a CrudModel for an animal and a person and shows them in a ConsoleApplication.

You can find the example in the uNHAddins source

For sure it is not the best example you will see, but you can see how easily you can configure your repositories / daos to access one factory or other using uNHAddins

2 comments: