Skip to content

Cover method parameters in precompiled async queries - #39306

Closed
AndriySvyryd with Copilot wants to merge 2 commits into
mainfrom
copilot/efcore-fix-precompile-queries-exception
Closed

AndriySvyryd with Copilot wants to merge 2 commits into
mainfrom
copilot/efcore-fix-precompile-queries-exception

Conversation

Copilot AI commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Query precompilation was reported to throw UnreachableException for method parameters captured in predicates or passed as cancellation tokens. The current translator already supports these cases; this change adds regression coverage.

  • Shared regression: Exercise FirstOrDefaultAsync with captured predicate parameters and ToListAsync with a CancellationToken method parameter. Verify repeated calls use updated parameter values.
  • SQL Server coverage: Add the provider override and SQL baselines.

No production code changes.

Copilot AI changed the title [WIP] Fix UnreachableException for query precompilation in efcore Cover method parameters in precompiled async queries Oct 17, 2026
Copilot AI requested a review from AndriySvyryd October 17, 2026 01:30
@AndriySvyryd
AndriySvyryd deleted the copilot/efcore-fix-precompile-queries-exception branch October 17, 2026 04:15
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.

efcore/NativeAOT: precompile queries throws UnreachableException exception.

2 participants