Skip to content

Commit f6f4834

Browse files
authored
Update seed-database-data.md (#2370)
Fix confusing snippet selection
1 parent 2b69a35 commit f6f4834

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: docs/database/seed-database-data.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The following examples demonstrate how to seed data using SQL scripts and config
8787

8888
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.
8989

90-
:::code source="~/aspire-samples/samples/DatabaseContainers/DatabaseContainers.AppHost/Program.cs" range="26-37" :::
90+
:::code source="~/aspire-samples/samples/DatabaseContainers/DatabaseContainers.AppHost/Program.cs" range="37-49" :::
9191

9292
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.
9393

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

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

104-
:::code source="~/aspire-samples/samples/DatabaseContainers/DatabaseContainers.AppHost/Program.cs" range="3-14" :::
104+
:::code source="~/aspire-samples/samples/DatabaseContainers/DatabaseContainers.AppHost/Program.cs" range="3-15" :::
105105

106106
Corresponding SQL script included in the app:
107107

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

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

114-
:::code source="~/aspire-samples/samples/DatabaseContainers/DatabaseContainers.AppHost/Program.cs" range="15-25" :::
114+
:::code source="~/aspire-samples/samples/DatabaseContainers/DatabaseContainers.AppHost/Program.cs" range="20-32" :::
115115

116116
Corresponding SQL script included in the app:
117117

0 commit comments

Comments
 (0)