Skip to content

Add missing documentation for interceptors#5279

Merged
roji merged 1 commit intodotnet:mainfrom
roji:Interceptors
Feb 28, 2026
Merged

Add missing documentation for interceptors#5279
roji merged 1 commit intodotnet:mainfrom
roji:Interceptors

Conversation

@roji
Copy link
Member

@roji roji commented Feb 27, 2026

Closes #4417
Closes #4726

@roji roji force-pushed the Interceptors branch 2 times, most recently from 2cc9f9a to 51a5443 Compare February 27, 2026 10:26
@roji roji marked this pull request as ready for review February 27, 2026 10:26
@roji roji requested a review from AndriySvyryd February 27, 2026 10:26
@roji roji enabled auto-merge (squash) February 27, 2026 10:27
@AndriySvyryd AndriySvyryd requested a review from Copilot February 27, 2026 21:08
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

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.

@AndriySvyryd AndriySvyryd assigned roji and unassigned AndriySvyryd Feb 27, 2026
@roji roji enabled auto-merge (squash) February 28, 2026 07:43
@roji roji merged commit 2be33b1 into dotnet:main Feb 28, 2026
4 checks passed
@roji roji deleted the Interceptors branch February 28, 2026 07:44
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.

Document materialization interceptors are singleton Document materialization interceptors

3 participants