Skip to content

Commit

Permalink
adjust code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
FBoucher committed Jul 17, 2024
1 parent 7d7daa7 commit 0c9ff13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/database/seed-database-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ The following examples demonstrate how to seed data using SQL scripts and config

The configuration code in the **.AppHost** _:::no-loc text="Program.cs":::_ file mounts the required database files and folders and configures an entrypoint so that they run during startup.

:::code source="~/aspire-samples/samples/DatabaseContainers/DatabaseContainers.AppHost/Program.cs" range="25-35" :::
:::code source="~/aspire-samples/samples/DatabaseContainers/DatabaseContainers.AppHost/Program.cs" range="26-37" :::

The _entrypoint.sh_ script lives in the mounted `./sqlserverconfig` project folder and runs when the container starts. The script launches SQL Server and checks that it's running.

Expand All @@ -101,7 +101,7 @@ The _init.sql_ SQL script that lives in the mounted `../DatabaseContainers.ApiSe

Configuration code in the **.AppHost** project:

:::code source="~/aspire-samples/samples/DatabaseContainers/DatabaseContainers.AppHost/Program.cs" range="3-12" :::
:::code source="~/aspire-samples/samples/DatabaseContainers/DatabaseContainers.AppHost/Program.cs" range="3-14" :::

Corresponding SQL script included in the app:

Expand All @@ -111,7 +111,7 @@ Corresponding SQL script included in the app:

Configuration code in the **.AppHost** project:

:::code source="~/aspire-samples/samples/DatabaseContainers/DatabaseContainers.AppHost/Program.cs" range="14-23" :::
:::code source="~/aspire-samples/samples/DatabaseContainers/DatabaseContainers.AppHost/Program.cs" range="15-25" :::

Corresponding SQL script included in the app:

Expand Down

0 comments on commit 0c9ff13

Please sign in to comment.