Add missing documentation for interceptors#5279
Merged
roji merged 1 commit intodotnet:mainfrom Feb 28, 2026
Merged
Conversation
2cc9f9a to
51a5443
Compare
There was a problem hiding this comment.
Pull request overview
This PR expands and centralizes EF Core interceptor documentation (including materialization interceptors and singleton interceptor guidance) by moving detailed examples into the Interceptors doc and simplifying the EF Core 6.0/7.0 “What’s New” sections to summaries with links.
Changes:
- Adds an “Available interceptors” overview plus new/expanded sections and examples to
interceptors.md, including singleton interceptor guidance. - Reworks EF Core 6.0/7.0 “What’s New” interceptor sections to brief summaries with links to the Interceptors doc.
- Removes several “NewInEFCore6/7” sample source files and their invocations that were primarily used for the previously inlined “What’s New” content.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| samples/core/Miscellaneous/NewInEFCore7/QueryStatisticsLoggerSample.cs | Removes now-duplicated sample formerly in EF7 “What’s New”. |
| samples/core/Miscellaneous/NewInEFCore7/QueryInterceptionSample.cs | Removes sample now documented via Interceptors page examples. |
| samples/core/Miscellaneous/NewInEFCore7/OptimisticConcurrencyInterceptionSample.cs | Removes sample now covered in Interceptors documentation. |
| samples/core/Miscellaneous/NewInEFCore7/LazyConnectionStringSample.cs | Removes sample now covered in Interceptors documentation. |
| samples/core/Miscellaneous/NewInEFCore7/InjectLoggerSample.cs | Removes sample now covered in Interceptors documentation. |
| samples/core/Miscellaneous/NewInEFCore7/Program.cs | Stops invoking deleted interceptor samples. |
| samples/core/Miscellaneous/NewInEFCore6/CommandSourceSample.cs | Removes sample now represented inline + linked to Interceptors doc. |
| samples/core/Miscellaneous/NewInEFCore6/Program.cs | Stops invoking deleted command-source sample. |
| entity-framework/core/what-is-new/ef-core-7.0/whatsnew.md | Replaces large interceptor example sections with summaries + links to Interceptors doc. |
| entity-framework/core/what-is-new/ef-core-6.0/whatsnew.md | Updates command-source section to inline snippet + link to Interceptors doc section. |
| entity-framework/core/logging-events-diagnostics/interceptors.md | Adds interceptor inventory table, singleton interceptor guidance, and several new example sections. |
entity-framework/core/logging-events-diagnostics/interceptors.md
Outdated
Show resolved
Hide resolved
entity-framework/core/logging-events-diagnostics/interceptors.md
Outdated
Show resolved
Hide resolved
AndriySvyryd
approved these changes
Feb 27, 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.
Closes #4417
Closes #4726