Could you post the exception?

It sounds like you're loading all of the mappings (both db1 and db2) into a
single configuration.  You could either have the mappings in two different
assemblies or specify which mappings to add by namespace.

I've seen other people get clever and add properties to the mappings
themselves to specify what database they belong to, but I think the above
solutions might demand a little cleaner organization.

Example of specifying by namespace:

[...]
.Mappings(map => map.AutoMappings.Add(
    AutoMap
        .AssemblyOf<MyObjectFromSchema1>()
        .Where(type => type.Namespace == "MyNamespace.MyObjectsFromSchema1"
    )
)

- nick

On Sat, Aug 21, 2010 at 5:42 AM, philw <dlynch1...@gmail.com> wrote:

> When I use hbm files to map to two separate databases using schemas
> when testing nhibernate creates the new new tables in one database.
> When I use fluent an error is thrown stating the the second database
> can't be found. Is there a work around or a way for fluent to ignore
> the schema on testing?
>
> thanks
>
> Phil
>
> --
> You received this message because you are subscribed to the Google Groups
> "Fluent NHibernate" group.
> To post to this group, send email to fluent-nhibern...@googlegroups.com.
> To unsubscribe from this group, send email to
> fluent-nhibernate+unsubscr...@googlegroups.com<fluent-nhibernate%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/fluent-nhibernate?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibern...@googlegroups.com.
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to