Hi,
Can Nhibernate work with 2 different schema? I have a project to work with say schema A fro few parts and Schema B for others. is this possible with Nhibernate. How can i do that?
Thanks
Arvind
Hi,
Can Nhibernate work with 2 different schema? I have a project to work with say schema A fro few parts and Schema B for others. is this possible with Nhibernate. How can i do that?
Thanks
Arvind
It is possible, but not that straightforward. See this article. Googling will also help.
I think it is possible, but you'll have to instantiate 2 session factories.
Perhaps this article can be helpfull
If these schemata 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>