[docs] Add Aspire.Hosting.EntityFrameworkCore hosting integration documentation#815
Conversation
Documents the new EF Core migrations hosting integration introduced in microsoft/aspire#13481, including: - AddEFMigrations extension method usage - RunDatabaseUpdateOnStart with WaitFor support - PublishAsMigrationScript and PublishAsMigrationBundle - Dashboard resource commands reference - WithMigrationsProject for separate migrations projects - Sidebar entry under Entity Framework Core section Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
| @@ -0,0 +1,181 @@ | |||
| --- | |||
There was a problem hiding this comment.
Most of this is already documented in https://github.com/microsoft/aspire.dev/pull/774/changes#diff-a35f8bf3a9b68b09c860816e9fd63d18e4c7eac0276c8da94f8debd31448d505
This should at least use the existing page
|
Hey @copilot, please update this PR. It looks like this is perhaps a duplicate of an existing doc that already came through for these changes. Have a look at src/frontend/src/content/docs/integrations/databases/efcore/migrations.mdx and reconcile this, either de-dup, or close this PR. |
…sts in migrations.mdx) Agent-Logs-Url: https://github.com/microsoft/aspire.dev/sessions/b593f89b-ce0d-4cb8-9574-f3ff93d35f53 Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Done — I've removed the duplicate |
Documents changes from microsoft/aspire#13481 —
@CopilotTargeting
release/13.3based on the source PR milestone13.3(which exists onmicrosoft/aspire.dev).Why this PR is needed
microsoft/aspire#13481 introduces the
Aspire.Hosting.EntityFrameworkCoreNuGet package — a new AppHost hosting integration that manages EF Core database migrations. This is a significant new user-facing feature with no existing documentation on aspire.dev. The existing Apply EF Core migrations page covers only the manual migration worker service approach; it does not mention the new hosting integration.What was added
New page:
src/frontend/src/content/docs/integrations/databases/efcore/ef-migrations-hosting.mdxCovers:
Aspire.Hosting.EntityFrameworkCorein the AppHostAddEFMigrations()— generic and string-based overloads, multiple DbContext typesRunDatabaseUpdateOnStart()— automatic migrations at startup with health check integrationWaitFor(migrations)— blocking dependent resources until migrations completePublishAsMigrationScript()andPublishAsMigrationBundle()— publish-time artifact generationWithMigrationOutputDirectoryandWithMigrationNamespace— customization optionsWithMigrationsProject<T>()— separate migrations project supportSidebar update:
src/frontend/config/sidebar/integrations.topics.tsAdded
EF migrations hosting integrationentry under the Entity Framework Core group, immediately after the existing Apply migrations entry.Files modified
src/frontend/src/content/docs/integrations/databases/efcore/ef-migrations-hosting.mdx(new)src/frontend/config/sidebar/integrations.topics.ts(updated)