Repository navigation
Breaking change note: a filtered index no longer replaces the index on a foreign key - #5525
Draft
ajcvickers wants to merge 4 commits into
Draft
ajcvickers wants to merge 4 commits into
ajcvickers wants to merge 4 commits into
Conversation
…gn key index Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…nal behavior An index on exactly the foreign key's properties is always the foreign key's index, and a convention-set filter now only prevents an index covering the foreign key if it excludes rows with nulls in columns that aren't foreign key columns. The convention API is now IsPartial(index, properties) and OnIndexCoverageChanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ter regeneration Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…olumns Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a breaking change note to the EF Core 12 breaking changes page for dotnet/efcore#39652 (fixes dotnet/efcore#24237).
An index with a filter, that starts with a foreign key's properties and has more properties after them, no longer counts as covering the foreign key, so the foreign key's own index is created, and the next migration contains a
CreateIndexfor it. An index on exactly the foreign key's properties is still the foreign key's index, and a filter set by convention (such as SQL Server's filter on unique indexes over nullable columns) still covers the foreign key unless it excludes rows with nulls in columns that aren't foreign key columns.Draft until dotnet/efcore#39652 merges. Like the other open breaking change PRs, this adds
ef-core-12.0/breaking-changes.md, so whichever merges second needs a trivial merge of the page.🤖 Generated with Claude Code