Skip to content

Document ExcludeForeignKeyFromMigrations (EF Core 11)#5283

Merged
roji merged 1 commit intopreview-3from
copilot/update-documentation-for-issue-15854
Mar 6, 2026
Merged

Document ExcludeForeignKeyFromMigrations (EF Core 11)#5283
roji merged 1 commit intopreview-3from
copilot/update-documentation-for-issue-15854

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 5, 2026

  • Add documentation section "Excluding foreign key constraints from migrations" in foreign-and-principal-keys.md
  • Add section in whatsnew.md for EF Core 11 under the Migrations section (moved to first position)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI assigned Copilot and roji Mar 5, 2026
Copilot AI changed the title [WIP] Update documentation for issue 15854 Document ExcludeForeignKeyFromMigrations (EF Core 11) Mar 5, 2026
Copilot finished work on behalf of roji March 5, 2026 06:26
Copilot finished work on behalf of roji March 5, 2026 07:05
@roji roji marked this pull request as ready for review March 5, 2026 07:10
@roji roji changed the base branch from main to preview-3 March 5, 2026 13:05
@roji roji force-pushed the copilot/update-documentation-for-issue-15854 branch from 1f7eb8f to 1d8569d Compare March 5, 2026 13:54
@roji roji force-pushed the copilot/update-documentation-for-issue-15854 branch from 1d8569d to 3567388 Compare March 5, 2026 13:55
@AndriySvyryd AndriySvyryd requested a review from Copilot March 5, 2026 22:46
Copy link
Copy Markdown

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

Adds documentation for EF Core 11’s ability to model relationships without generating DB foreign key constraints via migrations.

Changes:

  • Documented ExcludeForeignKeyFromMigrations() in the EF Core 11 “What’s New” Migrations section.
  • Added a new Relationships docs section explaining how to exclude FK constraints (including a global application example).

Reviewed changes

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

File Description
entity-framework/core/what-is-new/ef-core-11.0/whatsnew.md Adds an EF Core 11 Migrations note describing how to exclude FK constraints from migrations and links to detailed docs.
entity-framework/core/modeling/relationships/foreign-and-principal-keys.md Adds detailed guidance and examples for excluding FK constraints from migrations (and related behaviors).

You can also share your feedback on Copilot code review. Take the survey.

@roji roji merged commit b636eb1 into preview-3 Mar 6, 2026
9 checks passed
@roji roji deleted the copilot/update-documentation-for-issue-15854 branch March 6, 2026 08:39
roji pushed a commit that referenced this pull request Mar 10, 2026
roji pushed a commit that referenced this pull request Apr 14, 2026
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.

4 participants