Skip to content

Remove query splitting when the includes fallback loads no collection - #1424

Merged
SimonCropp merged 1 commit into
mainfrom
split-query-includes-fallback
Sep 28, 2026
Merged

SimonCropp merged 1 commit into
mainfrom
split-query-includes-fallback

Conversation

@SimonCropp

Copy link
Copy Markdown
Owner

Remove query splitting when the includes fallback loads no collection

#1422 removed a resolver's AsSplitQuery only when the projection could be
built as a select. When it cannot, as for a type with derived types,
ApplyProjection falls back to includes and left the split in place, so a
connection over such a type that selected no collection still threw under
Verify.EntityFramework 16. The includes come from the same projection, so the
check now runs before either path.

#1422 removed a resolver's AsSplitQuery only when the projection could be
built as a select. When it cannot, as for a type with derived types,
ApplyProjection falls back to includes and left the split in place, so a
connection over such a type that selected no collection still threw under
Verify.EntityFramework 16. The includes come from the same projection, so the
check now runs before either path.
@SimonCropp
SimonCropp merged commit dc70bdf into main Sep 28, 2026
4 checks passed
@SimonCropp
SimonCropp deleted the split-query-includes-fallback branch September 28, 2026 22:22
@SimonCropp SimonCropp added this to the 35.3.4 milestone Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant