Skip to content

Commit

Permalink
Update sql-server-entity-framework-component.md (#60)
Browse files Browse the repository at this point in the history
I think the appsettings example is incorrect, 
Docs use Aspire:SqlServer:EntityFrameworkCore:SqlClient to configure component but I think it should be Aspire:Microsoft:EntityFrameworkCore:SqlServer as seen in const string DefaultConfigSectionName from AspireSqlServerEFCoreSqlClientExtensions class.
  • Loading branch information
ZieMcd committed Nov 16, 2023
1 parent 6e1516a commit 268e741
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/database/sql-server-entity-framework-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ The following is an example of an _appsettings.json_ file that configures some o
```json
{
"Aspire": {
"SqlServer": {
"Microsoft": {
"EntityFrameworkCore": {
"SqlClient": {
"SqlServer": {
"ConnectionString": "YOUR_CONNECTIONSTRING",
"DbContextPooling": true,
"HealthChecks": false,
Expand Down Expand Up @@ -102,14 +102,14 @@ If you want to register more than one `DbContext` with different configuration,
```json
{
"Aspire": {
"SqlServer": {
"Microsoft": {
"EntityFrameworkCore": {
"SqlClient": {
"ConnectionString": "YOUR_CONNECTIONSTRING",
"DbContextPooling": true,
"HealthChecks": false,
"Tracing": false,
"Metrics": true,
"SqlServer": {
"ConnectionString": "YOUR_CONNECTIONSTRING",
"DbContextPooling": true,
"HealthChecks": false,
"Tracing": false,
"Metrics": true,
"AnotherDbContext": {
"ConnectionString": "AnotherDbContext_CONNECTIONSTRING",
"Tracing": true
Expand Down

0 comments on commit 268e741

Please sign in to comment.