Skip to content

Document stripping of no-op SQL CASTs#5348

Merged
roji merged 2 commits intodotnet:preview.5from
roji:roji/document-cast-stripping
May 1, 2026
Merged

Document stripping of no-op SQL CASTs#5348
roji merged 2 commits intodotnet:preview.5from
roji:roji/document-cast-stripping

Conversation

@roji
Copy link
Copy Markdown
Member

@roji roji commented Apr 28, 2026

Document dotnet/efcore#36247

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@roji roji force-pushed the roji/document-cast-stripping branch from 0123272 to 5fd60fb Compare April 28, 2026 08:54
Copy link
Copy Markdown

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 release-note entry to EF Core 11.0 “What’s New” documenting the new SQL post-processing that removes redundant (no-op) CAST expressions, motivated by dotnet/efcore#36247.

Changes:

  • Document EF Core 11 behavior to detect and strip no-op SQL CAST expressions.
  • Provide before/after SQL examples demonstrating the generated SQL change.
  • Explain the performance motivation (avoiding unnecessary work and improving index usage).

Comment thread entity-framework/core/what-is-new/ef-core-11.0/whatsnew.md
Comment thread entity-framework/core/what-is-new/ef-core-11.0/whatsnew.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@roji roji merged commit 7c17ae9 into dotnet:preview.5 May 1, 2026
4 checks passed
@roji roji deleted the roji/document-cast-stripping branch May 1, 2026 07:41
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.

3 participants