Hello Gabriel,

how are you initializing ActiveRecord/NHibernate?

I've played a bit with ActiveRecordStarter.ModelsCreated event handler
(to tweak schema handling with sqlite) but I can't tell for sure if
you can keep a handle to change the connection name in a dedicated
httpmodule according to your user context.

Also, maybe looking at a custom implementation of
ISessionFactoryHolder could help:

https://svn.castleproject.org/svn/castle/trunk/ActiveRecord/Castle.ActiveRecord/Framework/SessionFactoryHolder.cs

On Dec 1, 8:21 pm, Gabriel Mancini de Campos
<[EMAIL PROTECTED]> wrote:
> Hi All,
>
>   In my Screen "Login" i have a drop-down with some databases names.
> this db´s can be in separeted servers, but i can yours connections
> Strings, but
> when i login, i need to select how Data Base i will use.
>    My question is:
>    How can i connect to data base selected by the user?
>    or how can i change the DB made a logoff and new login. using AR.
>    All this DB´s have the same Structure. (or in less their hav to
> be).
>
> thank all
>
> sorry my english sux! :(
> Gabriel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to