1. My multiple connections do not need to be active at the same
time... The user will "close" one file and then "open" another. Is
this really the simplest way to accomplish this?

2. If this is the way to go, how do I make the repositories get the
"active" domain? ... or how do I switch the active factory?

On Sep 8, 10:21 pm, José F. Romaniello <[email protected]> wrote:
> I think, you should use multiples sessionfactories and multiples
> configurations,
> please read 
> this:http://fabiomaulo.blogspot.com/2009/09/configure-sessionfactory-provi...
>
> <http://fabiomaulo.blogspot.com/2009/09/configure-sessionfactory-provi...>I
> think you will need to do some work to put configurations into the
> configurationprovider at runtime.
>
> 2010/9/8 Eric <[email protected]>
>
> > Thanks!
>
> > One last question...
> > What must be done, in regards to "Configure()" when switching the
> > "dialect" at run-time? The actual mappings are the same.. only the
> > properties specific to database connection are changed at runtime.
>
> > I have a custom IConfigurationProvider, but it does not seem like
> > "Configure()" gets called more than once...
> > 1. Do I need to explicitly call something to re-configure?
> > 2. Does BuildSessionFactory() need to be called after making changes
> > to the dialect?
>
> > Thanks Again,
> > Eric
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "nhusers" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<nhusers%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/nhusers?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to