Skip to content

Document runtime migration creation (--add option for database update)#5384

Merged
AndriySvyryd merged 6 commits into
preview.6from
copilot/document-runtime-migration-creation
Jun 11, 2026
Merged

Document runtime migration creation (--add option for database update)#5384
AndriySvyryd merged 6 commits into
preview.6from
copilot/document-runtime-migration-creation

Conversation

Copilot AI commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Documents the runtime migration creation feature from dotnet/efcore#37415, which allows creating and applying migrations in a single step using Roslyn compilation at runtime.

  • managing.md — New "Create and apply a migration in one step" section with CLI/PowerShell tabs and behavior notes (fallback when no pending changes)
  • dotnet.md — Added --add, --output-dir, and --namespace options to dotnet ef database update reference
  • powershell.md — Added -Add, -OutputDir, -Namespace parameters to Update-Database reference
dotnet ef database update InitialCreate --add
dotnet ef database update AddProducts --add --output-dir Migrations/Products --namespace MyApp.Migrations

Copilot AI linked an issue Jun 11, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Document runtime migration creation Document runtime migration creation (--add option for database update) Jun 11, 2026
Copilot AI requested a review from AndriySvyryd June 11, 2026 02:23
@AndriySvyryd
AndriySvyryd requested a review from Copilot June 11, 2026 17:17

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

Documents EF Core’s runtime migration creation feature that lets users scaffold and apply a migration in a single command invocation (via Roslyn compilation at runtime), and updates the CLI/PMC reference docs accordingly.

Changes:

  • Added a new “Create and apply a migration in one step” section to migrations management docs, including examples and limitations.
  • Documented new dotnet ef database update options (--add, --output-dir, --namespace, --json) in the .NET CLI reference.
  • Documented new Update-Database parameters (-Add, -OutputDir, -Namespace) in the PowerShell reference.

Reviewed changes

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

File Description
entity-framework/core/managing-schemas/migrations/managing.md Adds narrative guidance and examples for creating+applying a migration in one step, plus limitations.
entity-framework/core/cli/dotnet.md Updates dotnet ef database update reference to include --add and related options and examples.
entity-framework/core/cli/powershell.md Updates Update-Database reference with -Add and related parameters and an example.

Comment thread entity-framework/core/cli/dotnet.md Outdated
Comment thread entity-framework/core/cli/powershell.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread entity-framework/core/cli/dotnet.md Outdated
Copilot AI requested a review from AndriySvyryd June 11, 2026 18:53
@AndriySvyryd
AndriySvyryd marked this pull request as ready for review June 11, 2026 18:58
Comment thread entity-framework/core/managing-schemas/migrations/managing.md Outdated
@AndriySvyryd
AndriySvyryd merged commit ccd214e into preview.6 Jun 11, 2026
3 checks passed
@AndriySvyryd
AndriySvyryd deleted the copilot/document-runtime-migration-creation branch June 11, 2026 19:27
AndriySvyryd added a commit that referenced this pull request Jul 13, 2026
Document EF Core 11 FullJoin support (#5374)
Document EF Core 11 indexing enhancements (#5380)
Document runtime migration creation (`--add` option for `database update`) (#5384)
Document obsoletion of owned JSON collections without an explicit key (EF11) (#5383)
Document Microsoft.Data.Sqlite SQLite3MC breaking change (#5385)
Document sqlite3mc glibc requirement and SQLite fallback paths in EF Core 11 breaking changes (#5407)

Document PR #38440 provider-facing breaking change
Add xUnit v3 upgrade as a test change in provider-facing changes
Add PR #38192 (complex-type keys/indexes) as a provider-facing change (#5392)

Fixes #5246
Fixes #5238

Co-authored-by: Andriy Svyryd <AndriySvyryd@users.noreply.github.com>
Co-authored-by: Shay Rojansky <roji@roji.org>
Co-authored-by: Jiri Cincura ↹ <jiri@cincura.net>
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 runtime migration creation

4 participants