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: learn-pr/aspnetcore/use-databases-dotnet-aspire-app/includes/exercise-use-databases-persist-data-from-aspire-app.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,15 +132,15 @@ Two projects connect to the SQLite database, the **Catalog.Data.Manager** and **
132
132
1. In **Solution Explorer**, right-click the **Catalog.API** project, select **Add** > **.NET Aspire package**.
133
133
1. In the **Search** box, add **Npgsql.EntityFramework** to the end, and press <kbd>Enter</kbd>.
134
134
1. On the left, in the results, select **Aspire.Npgsql.EntityFrameworkCore.PostgreSQL**.
135
-
1. On the right, select the version dropdown and then select the latest **8.0.0** release.
135
+
1. On the right, select the version dropdown and then select the latest **9.3.1** release.
136
136
1. Select **Install**.
137
137
1. If the **Preview Changes** dialog appears, select **Apply**.
138
138
1. In the **License Acceptance** dialog, select **I Accept**.
139
139
1. In **Solution Explorer**, select the **Catalog.API** project to view the content of the *Catalog.API.csproj* file.
140
140
1. Delete the `PackageReference` for **Microsoft.EntityFrameworkCore.Sqlite**:
Copy file name to clipboardExpand all lines: learn-pr/aspnetcore/use-databases-dotnet-aspire-app/includes/store-data-sql-databases.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -508,6 +508,6 @@ if (app.Environment.IsDevelopment())
508
508
}
509
509
```
510
510
511
-
The above code checks the state of the app environment. If it's in development, the code retrieves the `CatalogContext` class and runs the `EnsureCreated` method. This method creates the database and runs any migrations that are pending.
511
+
The code checks the state of the app environment. If it's in development, the code retrieves the `CatalogContext` class and runs the `EnsureCreated` method. This method creates the database and runs any migrations that are pending.
512
512
513
513
For more information on how to seed the different database integrations, see the [.NET Aspire documentation](/dotnet/aspire/database/seed-database-data).
0 commit comments