How does LINQ behave when multiple IQueryable providers are accidentally composed together?
Updated May 16, 2026
Short answer
LINQ cannot safely compose multiple IQueryable providers; it either fails translation or forces client-side evaluation.
Deep explanation
Each IQueryable provider (e.g., EF Core, LINQ-to-SQL, Cosmos provider) has its own expression translation engine. When queries from different providers are combined, the expression tree becomes incompatible. Since there is no shared execution model, the framework cannot unify translation. This often results in runtime exceptions or silent fallback to IEnumerable, which moves execution to memory and breaks performance expectations.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro