We are using EF.Core for a current project. The project has three databases which is a real nuisance that can\'t really be avoided. The databases have the same structure. So we
Interesting problem.
One context cannot across multiple database,
using multiple context will end up loading data in memory and doing linq to objects which perhaps is not desired or even possible.
First option is to use linked tables in database and query against it. which I think is the easiest.
I don't know how complex is your query and how big is data to suggest a in memory scenario, based on what you are doing in your query you may have some ad hoc solutions , examples: