NHibernate: displaying objects through multiple databases on different servers without a link to the database

Using the latest version of NHibernate (and possibly some plugins), is it possible to map objects across multiple databases on different servers without a link to the database?

For the background, I'm looking to implement something faintly similar to what is described in this DBA.SE post .

+5
source share
2 answers

I have an interesting answer on the nhusers mailing list. Conclusion:

From Jason Meckley

[...], , . - / , .

db , ETL. , , . 1 . .

- , . / . CustomerWithAddress - CustomerOrder. , .

var x = session1.get(ID);
var y = session2.get(ID);
return merge (x, y);

0

googeling ( ), , -, ,

<class name="..." table="..." schema="database.schema">
  ...
</class>

.

, . -, NHibernate - " " , HAPPENS. NHibernate " " " ", NHibernate , - , , .

IMHO, NHibernate , "schema" .

, -, , schema = "server.database.schema", "server" - (. http://technet.microsoft.com/de-de/library/ms190479.aspx)

, , , .

0

All Articles