Skip to content

Document UseSqlOutputClause/UseSqlReturningClause - #5184

Merged
roji merged 1 commit into
dotnet:mainfrom
roji:OutputClause
Dec 2, 2025
Merged

roji merged 1 commit into
dotnet:mainfrom
roji:OutputClause

Conversation

@roji

@roji roji commented Nov 27, 2025

Copy link
Copy Markdown
Member

Closes #4538

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 documents the UseSqlOutputClause and UseSqlReturningClause APIs by creating new dedicated documentation pages for SQL Server and SQLite providers. It removes old sample code files that were previously referenced for trigger configuration examples, replacing code snippets that were sourced from external files with inline examples. The documentation now provides comprehensive guidance on disabling OUTPUT/RETURNING clauses when they conflict with database triggers or other limitations.

Key changes:

  • Creates new miscellaneous documentation pages for SQL Server and SQLite providers with detailed guidance on OUTPUT/RETURNING clause limitations
  • Adds cross-references from the EF Core 8.0 what's new page to the new provider-specific documentation
  • Removes obsolete sample files and adds .DS_Store to .gitignore

Reviewed changes

Copilot reviewed 6 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
entity-framework/core/providers/sql-server/misc.md Rewrites the trigger/OUTPUT clause section with inline code examples instead of external file references
entity-framework/core/providers/sqlite/misc.md Creates new documentation page explaining RETURNING clause limitations and workarounds
entity-framework/toc.yml Adds the new SQLite miscellaneous page to the table of contents
entity-framework/core/what-is-new/ef-core-8.0/whatsnew.md Adds cross-references to the new provider-specific documentation pages
samples/core/SqlServer/Misc/TriggersContext.cs Removes obsolete sample file that was replaced with inline documentation examples
samples/core/SqlServer/Misc/Blog.cs Removes obsolete sample file
.gitignore Adds .DS_Store to ignore macOS system files
samples/core/.DS_Store Binary file that should have been ignored
samples/core/Miscellaneous/.DS_Store Binary file that should have been ignored

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@roji
roji marked this pull request as ready for review November 27, 2025 09:10
@roji
roji enabled auto-merge (squash) November 27, 2025 09:10
@roji
roji merged commit 9442d7f into dotnet:main Dec 2, 2025
@roji
roji deleted the OutputClause branch December 2, 2025 09:58
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 UseSqlReturningClause and UseSqlOutputClause

3 participants