Join on tables from different DbContext - model first

entity-framework entity-framework-6

Popular Answer

This is a situation when using stored procedures is appropriate. The two entities can be joined by the proc at the database level across different databases. You may then map that proc in your entities model and utilize it with whatever db is suitable. If you can, I say, as I've seen businesses that just allow EF and forbid all SPs.

0
2/17/2017 4:22:16 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow