Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 420869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:55:17+00:00 2026-05-12T18:55:17+00:00

I have asked this on the castle list as i’m using the nh facility

  • 0

I have asked this on the castle list as i’m using the nh facility but it just dawned on me to ask it here too 🙂

sorry for the cross posting.

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:

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

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://

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T18:55:21+00:00Added an answer on May 12, 2026 at 6:55 pm

    the solution here is to not use fluent when doing tackling complex scenarios.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Similar questions to this one have been asked but none seem to address my
I know questions of this kind have been asked before, but my situation differs
This question has been asked before ( link ) but I have slightly different
When I asked this previously I should have mentioned that it's particularly a light-weight
This is a continuation question from a previous question I have asked I now
Question: I have a question that is apparently not answered by this already-asked Bash
This query is related to this one I asked yesterday. I have a radio
I have asked a similar question before, but I didn't have a firm grasp
Previously I have asked to strip text from a field and convert it to
I have been asked to lend a hand on a hobby project that a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.