Skip to content

Commit 7904b9d

Browse files
authored
Merge pull request #326 from dotnet/main
✅ Merge `main` into `live`
2 parents 5ea3579 + 73a26ae commit 7904b9d

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

docs/database/snippets/tutorial/aspiresqlefcore/AspireSQLEFCore.AppHost/Program.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
var builder = DistributedApplication.CreateBuilder(args);
22

3-
var sqlpassword = builder.Configuration["sqlpassword"];
4-
53
var sql = builder.AddSqlServer("sql")
64
.AddDatabase("sqldata");
75

docs/database/sql-server-components.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,7 @@ Replace the contents of the _Program.cs_ file in the _AspireSQLEFCore.AppHost_ p
9898

9999
:::code language="csharp" source="snippets/tutorial/AspireSQLEFCore/AspireSQLEFCore.AppHost/Program.cs":::
100100

101-
The preceding code adds a SQL Server Container resource to your app and configures a connection to a database called `sqldata`. The Entity Framework classes you configured earlier will automatically use this connection when migrating and connecting to the database. The `sqlpassword` variable represents the password for the default database user in the SQL Server container.
102-
103-
Set a `sqlpassword` key in the [user secrets](/aspnet/core/security/app-secrets) store of the _AspireSQLEFCore.AppHost_ project using the `dotnet user-secrets` command in the AppHost project directory. Passwords must meet the [Password Policy](/sql/relational-databases/security/password-policy#password-complexity) complexity requirements.
104-
105-
```dotnetcli
106-
dotnet user-secrets set sqlpassword <password>
107-
```
101+
The preceding code adds a SQL Server Container resource to your app and configures a connection to a database called `sqldata`. The Entity Framework classes you configured earlier will automatically use this connection when migrating and connecting to the database.
108102

109103
## Run and test the app locally
110104

0 commit comments

Comments
 (0)