Can Nhibernate work with 2 different schemas?

Can Nhibernate work with 2 different schemas? I have a project to work with a known circuit A for several parts and circuit B for others. this is possible with Nhibernate. How can i do this?

thank

Ervind

+2


source to share


3 answers


I think it is possible, but you will have to instantiate two session factories.



Maybe this article can be helpful

+1


source


If these schemas are in the same database, you can specify it in the mapping file:



<class name="MyClass" schema="A">
...
</class>

<class name="AnotherClass" schema="B">
...
</class>

      

+4


source


It is possible, but not easy. See the article. Google will also help.

0


source







All Articles