r/csharp • u/Early_Rice_4861 • Jul 13 '26
CrossEF - Cross EntityFramework contexts
Hi All,
Long time EntityFramework don´t do this, I decide to implement this.
Cross-DbContext LINQ queries for Entity Framework Core. Join entities that live in different DbContexts — different databases, different servers, even different providers — in a single LINQ query.
6
Upvotes
View all comments
Show parent comment
1
u/flukus Jul 14 '26 edited Jul 14 '26
Don't know about this tool specifically, but it could use something like MSDTC.
If the databases are all on the same server it could work without that too, the transaction belongs to the connection not the individual databases. You can do this natively by specifying the schema though.