Document database trigger model-building APIs - #5452
Open
AndriySvyryd with Copilot wants to merge 2 commits into
Open
Document database trigger model-building APIs#5452AndriySvyryd with Copilot wants to merge 2 commits into
AndriySvyryd with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Document database triggers model building APIs
Document database trigger model-building APIs
Aug 19, 2026
AndriySvyryd
marked this pull request as ready for review
August 19, 2026 20:42
Contributor
There was a problem hiding this comment.
Pull request overview
Updates EF Core modeling documentation to properly document table trigger configuration via HasTrigger, and clarifies the migrations limitation (triggers are not created by EF migrations).
Changes:
- Added a new “Table triggers” section documenting
ToTable(tb => tb.HasTrigger(...))using an existing sample snippet. - Clarified that
HasTriggeronly affects EF model metadata and that trigger DDL must be applied viamigrationBuilder.Sql, linking to the relevant migrations guidance. - Refreshed the page
ms.date.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
The
HasTriggerAPI linked to missing guidance and did not clearly explain that migrations do not create triggers.Model configuration
Document
HasTriggerusing the existing sample:Migration limitation
HasTriggeronly registers model metadata.migrationBuilder.Sqlguidance for creating trigger DDL.