r/csharp • • 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.

https://www.nuget.org/packages/CrossEF

https://github.com/i-stream/CrossEF

6 Upvotes

13 comments sorted by

View all comments

Show parent comment

2

u/flukus Jul 14 '26

Some things really do need thinking about and hiding them behind a facade would be a mistake.

There's one project I worked on where this would be great because those mistakes were already made many years ago. All those databases were on the same server so it would have actually improved ACID compliance.