You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/database/ef-core-migrations.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ If you prefer using Visual Studio's Package Manager Console instead of the comma
84
84
85
85
1. Modify the model so that it includes a new property. Open *:::no-loc text="SupportTicketApi.Data\\Models\\SupportTicket.cs":::* and add a new property to the `SupportTicket` class:
1. Create another new migration to capture the changes to the model:
90
90
@@ -164,10 +164,10 @@ To execute migrations, call the EF Core <xref:Microsoft.EntityFrameworkCore.Migr
164
164
165
165
To create a service that applies the migrations:
166
166
167
-
1. Add a new Worker Service project to the solution. If using Visual Studio, right-click the solution in Solution Explorer and select **:::no-loc text="Add":::** > **:::no-loc text="New Project":::**. Select **:::no-loc text="Worker Service":::**, name the project *:::no-loc text="SupportTicketApi.MigrationService":::* and target **.NET 8.0**. If using the command line, use the following commands from the solution directory:
167
+
1. Add a new Worker Service project to the solution. If using Visual Studio, right-click the solution in Solution Explorer and select **:::no-loc text="Add":::** > **:::no-loc text="New Project":::**. Select **:::no-loc text="Worker Service":::**, name the project *:::no-loc text="SupportTicketApi.MigrationService":::* and target **.NET 9.0**. If using the command line, use the following commands from the solution directory:
168
168
169
169
```dotnetcli
170
-
dotnet new worker -n SupportTicketApi.MigrationService -f "net8.0"
170
+
dotnet new worker -n SupportTicketApi.MigrationService -f "net9.0"
171
171
dotnet sln add SupportTicketApi.MigrationService
172
172
```
173
173
@@ -190,7 +190,7 @@ To create a service that applies the migrations:
190
190
191
191
1. Add the highlighted lines to the *:::no-loc text="Program.cs":::* file in the *:::no-loc text="SupportTicketApi.MigrationService":::* project:
0 commit comments