views:

30

answers:

2

Hi,

does anyone know if is possible to add 2 entities into EF model from 2 DB.

If not, what suggestions can you gave me to build a query that affects 2 databases

A: 

It is not possible to map a conceptual model, to two storage models.

If you find yourself needing to join between 2 databases, I have seen this accomplished via Data Services. You basically talk via URIs. So you query for URI to some set of data (ultimately gives you the surrogate key) and then you use that to query for data in the second database.

Nix
I didn't understand "you might want to think about reorganizing your servers."?
muek
I took it out. I was a partial thought that I never finished.
Nix
A: 

Actually, there is no direct support for this scenario, MSFT members state it in this thread.
However, Rafael Krisller and Akhil Karkera suggest some workarounds here.

Devart
Do you have any idea if, NHibernate Linq support this?
muek