Document EF Core 11 indexing enhancements#5380
Merged
Merged
Conversation
Copilot created this pull request from a session on behalf of
AndriySvyryd
June 9, 2026 23:05
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds EF Core 11 documentation for new indexing-related capabilities across complex types, SQL Server JSON indexes, and expanded Cosmos DB indexing policy support, and surfaces these additions in the EF Core 11 “What’s New” page.
Changes:
- Documented keys and indexes over scalar properties inside complex (non-collection) types, including string-path configuration and complex collection path syntax.
- Added SQL Server provider guidance for creating/scaffolding JSON indexes over JSON-mapped complex types.
- Added Cosmos provider documentation for indexing policy emission/configuration, including automatic indexing control and path exclusions.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| entity-framework/core/what-is-new/ef-core-11.0/whatsnew.md | Adds EF Core 11 release-note entries for complex-type keys/indexes, SQL Server JSON indexes, and Cosmos indexing policy with links to detailed docs. |
| entity-framework/core/providers/sql-server/index.md | Introduces a new section documenting SQL Server JSON indexes and related configuration examples. |
| entity-framework/core/providers/cosmos/modeling.md | Adds a new “Indexing policy” section describing Cosmos indexing policy configuration and complex-path indexing. |
| entity-framework/core/modeling/keys.md | Documents key configuration over scalar properties nested in complex types, including string-based paths and limitations. |
| entity-framework/core/modeling/indexes.md | Documents indexing over complex type properties (including JSON/collection paths) and complex-type included columns for SQL Server. |
…dex, remove redundant HasAutomaticIndexing(false)
| .Except("/InternalNotes/?"); | ||
| ``` | ||
|
|
||
| To index only explicitly configured paths, disable automatic indexing and configure indexes with `HasIndex`: |
Member
There was a problem hiding this comment.
@copilot Explain that automatic indexing is disabled automatically in this case
Contributor
Author
There was a problem hiding this comment.
Updated the sentence to clarify that automatic indexing is disabled automatically as soon as any single-property index is defined, so calling HasAutomaticIndexing(false) explicitly is unnecessary.
…le-property index is defined
SamMonoRT
approved these changes
Jun 10, 2026
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 documentation for EF Core 11 indexing changes from recent EF Core work: complex-property keys/indexes, SQL Server JSON indexes, and expanded Cosmos indexing policy support.
Complex type keys and indexes
SQL Server JSON indexes
Cosmos indexing policy
HasAutomaticIndexing, indexing exclusions, explicit indexes, and complex collection paths.What’s New
Example: