Skip to content

Document better SQL for to-one joins (EF Core 11 what's new)#5288

Merged
roji merged 3 commits intopreview-3from
copilot/document-linq-sql-improvements
Mar 9, 2026
Merged

Document better SQL for to-one joins (EF Core 11 what's new)#5288
roji merged 3 commits intopreview-3from
copilot/document-linq-sql-improvements

Conversation

Copy link
Contributor

Copilot AI commented Mar 9, 2026

  • Understand PR #37819 ("Better SQL for to-one joins") which fixes:
    • Issue #29182: Prune unneeded reference navigation joins in split queries
    • Issue #29662: Remove redundant ORDER BY columns from reference navigation joins
  • Add "what's new" entry in the EF Core 11 what's new page under "LINQ and SQL translation"
  • Move section to be first under "LINQ and SQL translation" (per review feedback)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Document new LINQ/SQL improvements in EF Core Document better SQL for to-one joins (EF Core 11 what's new) Mar 9, 2026
Copilot finished work on behalf of roji March 9, 2026 20:36
Copilot finished work on behalf of roji March 9, 2026 20:45
@roji roji marked this pull request as ready for review March 9, 2026 20:55
@roji roji merged commit 843750a into preview-3 Mar 9, 2026
5 checks passed
@roji roji deleted the copilot/document-linq-sql-improvements branch March 9, 2026 20:55
@AndriySvyryd AndriySvyryd requested a review from Copilot March 9, 2026 20:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new EF Core 11 “What’s New” entry under LINQ and SQL translation documenting the improved SQL generation for to-one (reference) navigation includes (join pruning in split queries and removal of redundant ORDER BY columns).

Changes:

  • Adds a new “Better SQL for to-one joins” section with before/after SQL examples.
  • Documents two optimizations: pruning unnecessary reference joins in split queries and omitting redundant ORDER BY columns for reference navigations.
  • Places this new section first within the “LINQ and SQL translation” area.

You can also share your feedback on Copilot code review. Take the survey.

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.

4 participants