From bacbd300602c70a8939e54990b0571b38fe8f4c1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Jun 2025 20:26:49 +0000 Subject: [PATCH 1/3] Initial plan for issue From aaf1db9deb95a9b3ecf4616697012036c484b2ab Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Jun 2025 20:29:52 +0000 Subject: [PATCH 2/3] Add Microsoft.EntityFrameworkCore.Tools package guidance to EF Core migrations documentation Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com> --- docs/database/ef-core-migrations.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/database/ef-core-migrations.md b/docs/database/ef-core-migrations.md index e4426f6a24..352cc89c8c 100644 --- a/docs/database/ef-core-migrations.md +++ b/docs/database/ef-core-migrations.md @@ -100,6 +100,9 @@ To create a service that applies the migrations: dotnet add package Aspire.Microsoft.EntityFrameworkCore.SqlServer -v "9.1.0" ``` + > [!TIP] + > In some cases, you might also need to add the [📦 Microsoft.EntityFrameworkCore.Tools](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Tools) package to prevent EF from failing silently without applying migrations. This is particularly relevant when using databases other than SQL Server, such as PostgreSQL. For more information, see [dotnet/efcore#27215](https://github.com/dotnet/efcore/issues/27215#issuecomment-2045767772). + 1. Add the highlighted lines to the *:::no-loc text="Program.cs":::* file in the *:::no-loc text="SupportTicketApi.MigrationService":::* project: :::code source="~/aspire-docs-samples-solution/SupportTicketApi/SupportTicketApi.MigrationService/Program.cs" highlight="1,6,9-12" ::: From a800f9534c83d67287f125e60fffc79cc2352d24 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Jun 2025 17:41:52 +0000 Subject: [PATCH 3/3] Improve EF Core terminology in migration documentation tip Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com> --- docs/database/ef-core-migrations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/database/ef-core-migrations.md b/docs/database/ef-core-migrations.md index 352cc89c8c..0349dca468 100644 --- a/docs/database/ef-core-migrations.md +++ b/docs/database/ef-core-migrations.md @@ -101,7 +101,7 @@ To create a service that applies the migrations: ``` > [!TIP] - > In some cases, you might also need to add the [📦 Microsoft.EntityFrameworkCore.Tools](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Tools) package to prevent EF from failing silently without applying migrations. This is particularly relevant when using databases other than SQL Server, such as PostgreSQL. For more information, see [dotnet/efcore#27215](https://github.com/dotnet/efcore/issues/27215#issuecomment-2045767772). + > In some cases, you might also need to add the [📦 Microsoft.EntityFrameworkCore.Tools](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Tools) package to prevent EF Core from failing silently without applying migrations. This is particularly relevant when using databases other than SQL Server, such as PostgreSQL. For more information, see [dotnet/efcore#27215](https://github.com/dotnet/efcore/issues/27215#issuecomment-2045767772). 1. Add the highlighted lines to the *:::no-loc text="Program.cs":::* file in the *:::no-loc text="SupportTicketApi.MigrationService":::* project: