From 268e7412899bf8a9ac8c079b1f2e0c58ee857ea5 Mon Sep 17 00:00:00 2001 From: Zie Mcdowell <59741700+ZieMcd@users.noreply.github.com> Date: Thu, 16 Nov 2023 19:45:25 +0000 Subject: [PATCH] Update sql-server-entity-framework-component.md (#60) 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. --- .../sql-server-entity-framework-component.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/database/sql-server-entity-framework-component.md b/docs/database/sql-server-entity-framework-component.md index 100dd1056..fc4ab9297 100644 --- a/docs/database/sql-server-entity-framework-component.md +++ b/docs/database/sql-server-entity-framework-component.md @@ -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, @@ -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