DifferentDatabaseScope is the preferred way for such a scenario, since table
structure and hence AR classes are identical fro all databases.

-Markus

2008/12/2 josh robb <[EMAIL PROTECTED]>

>
> There is also DifferentDatabaseScope...
>
> On Tue, Dec 2, 2008 at 7:03 AM, Ricardo Borges <[EMAIL PROTECTED]>
> wrote:
> >
> > It is only possible with base entity inheritance. The base type is
> > associated to the database config...
> >
> > <config type="Full Type name to Abstract Class that defines boundaries
> > for different database">
> >            <add key="connection.driver_class" value="NHibernate Driver"
> />
> >
> >
> >
> http://www.castleproject.org/activerecord/documentation/trunk/advanced/accessingmoredbs.html
> >
> >
> http://www.castleproject.org/activerecord/documentation/trunk/manual/xmlconfigref.html
> >
> >
> >
> >
> >
> > 2008/12/1 Gabriel Mancini de Campos <[EMAIL PROTECTED]>:
> >>
> >> 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 castle-project-users@googlegroups.com
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