Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update EF migrations docs to lead with Aspire.Hosting.EntityFrameworkCore#1169

Draft
Copilot wants to merge 1 commit into
mainmicrosoft/aspire.dev:mainfrom
copilot/update-ef-migration-docmicrosoft/aspire.dev:copilot/update-ef-migration-docCopy head branch name to clipboard
Draft

Update EF migrations docs to lead with Aspire.Hosting.EntityFrameworkCore#1169
Copilot wants to merge 1 commit into
mainmicrosoft/aspire.dev:mainfrom
copilot/update-ef-migration-docmicrosoft/aspire.dev:copilot/update-ef-migration-docCopy head branch name to clipboard

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 2, 2026

The EF Core migrations guide still centered the manual dotnet ef workflow after 13.3 introduced the AppHost-driven hosting integration. This updates the page so the Aspire.Hosting.EntityFrameworkCore flow is the primary path and keeps manual migrations as a shorter fallback.

  • Primary workflow: AppHost-managed migrations

    • Reworks the page to lead with the 13.3 hosting integration and Aspire.Hosting.EntityFrameworkCore package.
    • Shows the AppHost-driven migration path as the recommended approach instead of treating dotnet ef as the main workflow.
  • Manual workflow demoted to fallback

    • Preserves the manual dotnet ef guidance for teams not using the hosting integration.
    • Narrows that content to a secondary section so it no longer competes with the recommended path.
  • Cross-linking

    • Adds/updates cross-reference to the broader Aspire.Hosting.EntityFrameworkCore documentation work tracked separately so readers can move between the migration guide and package-specific guidance.
  • Doc scope

    • Keeps the edit focused to src/frontend/src/content/docs/integrations/databases/efcore/migrations.mdx with no unrelated documentation changes.

Example of the updated recommended flow:

var builder = DistributedApplication.CreateBuilder(args);

var sql = builder.AddSqlServer("sql");
var db = sql.AddDatabase("tickets");

builder.AddEFMigrations<SupportTicketApiDataContext>("migrations")
    .WithReference(db);

builder.AddProject<Projects.SupportTicketApi_Api>("api")
    .WithReference(db);

builder.Build().Run();

Copilot AI changed the title [WIP] Update EF migration documentation for new EF Core hosting integration Update EF migrations docs to lead with Aspire.Hosting.EntityFrameworkCore Jun 2, 2026
Copilot AI requested a review from IEvangelist June 2, 2026 03:02
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.

13.3 - EF Migration doc should be updated to use the new EF Core hosting integration

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.