Closed tforkmann closed 4 years ago
@Thorium Is that somehow possible?
As far as I know there is no direct support to this. How would we know the databases are located in the same server?
Of course if you have 2 separate connections and do some kind of Seq.toList to do the join on client side, that does work. ;-)
I know I can join manually... ;)
Maybe you could read the connection string and check for same server?
Tuomas Hietanen notifications@github.com schrieb am Do. 27. Juni 2019 um 15:34:
As far as I know there is no direct support to this. How would we know the databases are located in the same server?
Of course if you have 2 separate connections and do some kind of Seq.toList to do the join on client side, that does work. ;-)
old!
As a separate note, you shouldn't be able to do this anyway. There is no way to ensure referential integrity between databases, so if you need to do this you will either need to set up a 3rd aggregate database, or do the join in memory alone
Description
Can't joins tables from different databases
Repro steps´
Expected behavior
Execute query across two different databases
Actual behavior
Can't execute query because its only using the first datacontext
Known workarounds
None
Related information