Skip to content

Commit 5a843a5

Browse files
committed
Line edits3
1 parent 01a87ca commit 5a843a5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

learn-pr/aspnetcore/use-databases-dotnet-aspire-app/includes/exercise-use-databases-persist-data-from-aspire-app.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@ Two projects connect to the SQLite database, the **Catalog.Data.Manager** and **
132132
1. In **Solution Explorer**, right-click the **Catalog.API** project, select **Add** > **.NET Aspire package**.
133133
1. In the **Search** box, add **Npgsql.EntityFramework** to the end, and press <kbd>Enter</kbd>.
134134
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.
136136
1. Select **Install**.
137137
1. If the **Preview Changes** dialog appears, select **Apply**.
138138
1. In the **License Acceptance** dialog, select **I Accept**.
139139
1. In **Solution Explorer**, select the **Catalog.API** project to view the content of the *Catalog.API.csproj* file.
140140
1. Delete the `PackageReference` for **Microsoft.EntityFrameworkCore.Sqlite**:
141141
142142
```xml
143-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.3" />
143+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.5" />
144144
```
145145
146146
## Register the new PostgreSQL DbContext
@@ -203,7 +203,7 @@ The **AppHost** project can create a PostgreSQL database container, seed it with
203203
1. In **Solution Explorer**, right-click the **eShop.AppHost** project, select **Add** > **.NET Aspire package**.
204204
1. In the **Search** box, add **PostgreSQL** to the end, and press <kbd>Enter</kbd>.
205205
1. On the left, in the results, select **Aspire.Hosting.PostgreSQL**.
206-
1. On the right, select the version dropdown and then select the latest **8.0.0** release.
206+
1. On the right, select the version dropdown, and then select the latest **9.3.1** release.
207207
1. Select **Install**.
208208
1. If the **Preview Changes** dialog appears, select **Apply**.
209209
1. In the **License Acceptance** dialog, select **I Accept**.
@@ -270,7 +270,7 @@ The current app uses Redis as an in-memory data store for a customer's shopping
270270
271271
1. In **Solution Explorer**, right-click the **Basket.API** project, select **Add**, and then select **Add**>**.NET Aspire package**.
272272
1. In the **Search** box, enter **MongoDB** at the end, and press <kbd>Enter</kbd>.
273-
1. Select the **Aspire.MongoDB.Driver**, and then select the latest **8.0.0** version.
273+
1. Select the **Aspire.MongoDB.Driver**, and then select the latest **9.3.1** version.
274274
1. Select **Install**.
275275
1. If the **Preview Changes** dialog appears, select **Apply**.
276276
1. In the **License Acceptance** dialog, select **I Accept**.@
@@ -358,7 +358,7 @@ The basket microservice uses `HostingExtensions` to manage the Redis data store.
358358
359359
1. In **Solution Explorer**, right-click the **eShop.AppHost** project, and select **Add** > **.NET Aspire package**.
360360
1. In the **Search** box, enter **MongoDB** at the end, and press <kbd>Enter</kbd>.
361-
1. Select the **Aspire.Hosting.MongoDB** package, and then select the latest **8.0.0** version.
361+
1. Select the **Aspire.Hosting.MongoDB** package, and then select the latest **9.3.1** version.
362362
1. Select **Install**.
363363
1. If the **Preview Changes** dialog appears, select **Apply**.
364364
1. In the **License Acceptance** dialog, select **I Accept**.@

learn-pr/aspnetcore/use-databases-dotnet-aspire-app/includes/store-data-sql-databases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,6 @@ if (app.Environment.IsDevelopment())
508508
}
509509
```
510510

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.
512512

513513
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

Comments
 (0)