Repository navigation
Document EF Core AppHost migration management - #1175
David Pine (IEvangelist) with Copilot wants to merge 1 commit into
Conversation
| title: Set up EF Core migration management in the AppHost | ||
| description: Learn how to use Aspire.Hosting.EntityFrameworkCore to model EF Core migrations, dashboard commands, and startup or publish workflows from your AppHost. | ||
| --- | ||
|
|
There was a problem hiding this comment.
I don't think it makes sense to document this in one way here and in another in https://github.com/microsoft/aspire.dev/blob/main/src/frontend/src/content/docs/integrations/databases/efcore/migrations.mdx#automated-ef-migrations-with-addefmigrations
There was a problem hiding this comment.
Also mention that the connection string shouldn't be configured during publish, see microsoft/aspire#17847 (comment)
|
David Pine (@IEvangelist) I can review this once you decide on the general structure for these docs |
There was a problem hiding this comment.
Pull request overview
This PR adds a new EF Core documentation page focused on AppHost-side EF Core migration management via Aspire.Hosting.EntityFrameworkCore, and connects it into the EF Core docs and sidebar navigation. It also introduces a Japanese locale mirror page (currently English placeholder content) consistent with the repo’s localization workflow.
Changes:
- Added a new
efcore-hostpage documenting AppHost modeling of EF migrations, including dashboard operations and startup/publish workflows (C# + TypeScript samples). - Updated the EF Core overview to link to the new AppHost migration-management page and clarify AppHost vs consuming-app responsibilities.
- Wired the new page into the Integrations sidebar EF Core section; added a
jamirror page.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/frontend/src/content/docs/ja/integrations/databases/efcore/efcore-host.mdx | Adds the Japanese-locale mirror page (English placeholder) for the new EF Core AppHost migration management doc. |
| src/frontend/src/content/docs/integrations/databases/efcore/overview.mdx | Adds a pointer to the new AppHost migration-management page and improves formatting/clarity. |
| src/frontend/src/content/docs/integrations/databases/efcore/efcore-host.mdx | Adds the new EF Core AppHost migration management documentation page (C# + TypeScript). |
| src/frontend/config/sidebar/integrations.topics.ts | Adds the new EF Core AppHost page to the EF Core sidebar navigation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| data-zoom-off | ||
| /> | ||
|
|
||
| This article is the AppHost reference for [`Aspire.Hosting.EntityFrameworkCore`](https://www.nuget.org/packages/Aspire.Hosting.EntityFrameworkCore). Unlike the existing EF Core database pages, which focus on registering a `DbContext` inside a consuming .NET app, this package lives in the [`AppHost`](/get-started/app-host/) and models EF Core migration management for a project resource. It doesn't provision a database or replace the per-database EF Core client packages — instead, it adds a provider-agnostic EF Core migration resource that you can orchestrate alongside your existing database and app resources. |
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
| const horizontalWhitespace = String.raw`[ \t]+`; | ||
|
|
||
| // A deprecated term only matches when it isn't fused to an adjacent alphanumeric | ||
| // character, so longer tokens like `ASP.NET Aspire` or `.NET AspireX` stay intact |
There was a problem hiding this comment.
Use "Aspire" instead of ".NET Aspire".
| // character, so longer tokens like `ASP.NET Aspire` or `.NET AspireX` stay intact | |
| // character, so longer tokens like `ASPAspire` or `AspireX` stay intact |
| const termEnd = String.raw`(?![A-Za-z0-9])`; | ||
|
|
||
| // Markdown emphasis/link openers can sit between an article and a term in raw | ||
| // README content (e.g. `a **.NET Aspire**`, `a [.NET Aspire](url)`, or |
There was a problem hiding this comment.
Use "Aspire" instead of ".NET Aspire".
| // README content (e.g. `a **.NET Aspire**`, `a [.NET Aspire](url)`, or | |
| // README content (e.g. `a **Aspire**`, `a [Aspire](url)`, or |
|
|
||
| // Markdown emphasis/link openers can sit between an article and a term in raw | ||
| // README content (e.g. `a **.NET Aspire**`, `a [.NET Aspire](url)`, or | ||
| // `a _.NET Aspire_`), so the article corrector consumes them to stay grammatical |
There was a problem hiding this comment.
Use "Aspire" instead of ".NET Aspire".
| // `a _.NET Aspire_`), so the article corrector consumes them to stay grammatical | |
| // `a _Aspire_`), so the article corrector consumes them to stay grammatical |
| const markdownOpeners = String.raw`[*\[_]*`; | ||
|
|
||
| // Fenced code blocks and inline code spans are copied through verbatim so sample | ||
| // commands like `dotnet aspire run` are never rewritten into an unrunnable |
There was a problem hiding this comment.
Use "Aspire" instead of "dotnet aspire".
| // commands like `dotnet aspire run` are never rewritten into an unrunnable | |
| // commands like `Aspire run` are never rewritten into an unrunnable |
| * Case-insensitive regex source matching the deprecated term core, without | ||
| * boundaries. Use `${horizontalWhitespace}` for internal spaces; alphanumeric | ||
| * boundaries are applied automatically so a rule can never corrupt a longer | ||
| * token like `ASP.NET Aspire` or `.NET AspireX`. |
There was a problem hiding this comment.
Use "Aspire" instead of ".NET Aspire".
| * token like `ASP.NET Aspire` or `.NET AspireX`. | |
| * token like `ASPAspire` or `AspireX`. |
| /** | ||
| * Indefinite article the replacement should take. Set this only when the | ||
| * replacement's leading sound differs from the term's, so a preceding `a`/`an` | ||
| * is corrected (e.g. `a .NET Aspire` -> `an Aspire`). |
There was a problem hiding this comment.
Use "Aspire" instead of ".NET Aspire".
| * is corrected (e.g. `a .NET Aspire` -> `an Aspire`). | |
| * is corrected (e.g. `a Aspire` -> `an Aspire`). |
| seoTitle: Bun integration for Aspire AppHost (Community Toolkit) | ||
| description: Learn how to use the Aspire Community Toolkit Bun hosting integration to orchestrate Bun applications alongside other resources in the Aspire app host. | ||
| seoTitle: Bun integration for Aspire AppHost | ||
| description: Learn how to use the Aspire.Hosting.JavaScript Bun hosting APIs to orchestrate Bun applications alongside other resources in the Aspire app host. |
There was a problem hiding this comment.
Use "AppHost" instead of "app host".
| description: Learn how to use the Aspire.Hosting.JavaScript Bun hosting APIs to orchestrate Bun applications alongside other resources in the Aspire app host. | |
| description: Learn how to use the Aspire.Hosting.JavaScript Bun hosting APIs to orchestrate Bun applications alongside other resources in the Aspire AppHost. |
| ['uppercase article', `A ${legacyDotnetAspireName} sample`, 'An Aspire sample'], | ||
| ['lowercase article', `Build a ${legacyDotnetAspireName} sample`, 'Build an Aspire sample'], | ||
| ['no article', `Deploy the ${legacyDotnetAspireName} app`, 'Deploy the Aspire app'], | ||
| ])('normalizes the "dotnet aspire" spelling (%s)', (_scenario, input, expected) => { |
There was a problem hiding this comment.
Use "Aspire" instead of "dotnet aspire".
| ])('normalizes the "dotnet aspire" spelling (%s)', (_scenario, input, expected) => { | |
| ])('normalizes the "Aspire" spelling (%s)', (_scenario, input, expected) => { |
| test('normalizes prose while preserving adjacent code', () => { | ||
| const input = `Build a ${legacyAspireName} app, then run \`${legacyDotnetAspireName} run\`.`; | ||
| expect(normalizeAspireTerminology(input)).toBe( | ||
| 'Build an Aspire app, then run `dotnet aspire run`.' |
There was a problem hiding this comment.
Use "Aspire" instead of "dotnet aspire".
| 'Build an Aspire app, then run `dotnet aspire run`.' | |
| 'Build an Aspire app, then run `Aspire run`.' |
Add the AppHost migration management reference and link it from the EF Core overview and integration sidebar. Co-authored-by: Copilot App <[email protected]>
fd1c9c7 to
6b6c26a
Compare
Adds the 13.3 docs page for
Aspire.Hosting.EntityFrameworkCoreand wires it into the EF Core docs set. This documents the AppHost-side EF migration model separately from the existing per-database EF Core client integration pages.New EF Core AppHost page
integrations/databases/efcore/efcore-host.mdxAspire.Hosting.EntityFrameworkCoreAddEFMigrationsusageRunDatabaseUpdateOnStartWaitForCompletionWithMigrationsProject, output directory, namespace)EFMigrationResourceTypeScript parity
EF Core overview updates
efcore/overview.mdxto the new AppHost pageNavigation and localization
jamirror page with English placeholder content to match the repo’s localization flowExample AppHost usage: