Different connection strings?
I mean, are they different?

On Thu, Oct 15, 2009 at 11:49 AM, Wayne Douglas <[email protected]> wrote:
>
> Hi
>
> I'm using the nh facility to configure the following setup:
>
> i have 1 database which stores generic report configuration.
> and another which stores the actual report data.
>
> i also have 1 project for interacting with the report configuration
> database (entities and mappings etc)
> and another for interacting with the report data database  (entities
> and mappings etc).
>
> i've used the following to create 2 factories:
>
> <code>
>
> <facilities>
>  <facility id="nhibernate">
>    <factory id="nhibernate.factory.session1">
>      ...
>      <assemblies>
>        <assembly>ReportData.Model</assembly>
>      </assemblies>
>    </factory>
>
>    <factory id="nhibernate.factory.session2" alias="reporting">
>      ...
>      <assemblies>
>        <assembly>Reporting.Model</assembly>
>      </assemblies>
>    </factory>
>  </facility>
> </facilities>
>
> <code>
>
> the problem is is that even though nhibernate.factory.session1 and
> nhibernate.factory.session2 are looking at different databases and
> have different assemblies configured it always seems to create the
> tables for both models in both DBs?
>
> how do i tell nhibernate.factory.session1 to look at db1 and model1
> and nhibernate.factory.session2 to look at db2 and model2?
>
>
> --
> Cheers,
>
> w://
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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