Skip to content

Commit

Permalink
Merge pull request #2150 from dotnet/main
Browse files Browse the repository at this point in the history
✅ Merge `main` into `live`
  • Loading branch information
dotnet-policy-service[bot] authored Nov 23, 2024
2 parents ce21a79 + 136c95c commit 1618ad3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/database/mysql-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: .NET Aspire MySQL database integration
description: This article describes the .NET Aspire MySQL database integration.
ms.topic: how-to
ms.date: 08/12/2024
ms.date: 11/22/2024
---

# .NET Aspire MySQL database integration
Expand Down Expand Up @@ -94,15 +94,15 @@ The .NET Aspire MySQL database integration provides multiple configuration appro
When using a connection string from the `ConnectionStrings` configuration section, you can provide the name of the connection string when calling `builder.AddMySqlDataSource()`:

```csharp
builder.AddMySqlDataSource("MySqConnection");
builder.AddMySqlDataSource("mysql");
```

Then the connection string will be retrieved from the `ConnectionStrings` configuration section:

```json
{
"ConnectionStrings": {
"MySqConnection": "Server=mysql;Database=mysqldb"
"mysql": "Server=mysql;Database=mysqldb"
}
}
```
Expand Down

0 comments on commit 1618ad3

Please sign in to comment.