From b576c5965e89ab5190ac5e9cb645a8e679318199 Mon Sep 17 00:00:00 2001 From: Zie Mcdowell Date: Fri, 19 Jan 2024 15:00:31 +0200 Subject: [PATCH] Patch 2 (#309) * Update sql-server-entity-framework-component.md key used in the configuration description to match the example below. * Update sql-server-entity-framework-component.md fix description of key for multiple dbcontexts to match example also --- docs/database/sql-server-entity-framework-component.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/database/sql-server-entity-framework-component.md b/docs/database/sql-server-entity-framework-component.md index 70ae30ff6..4560330c8 100644 --- a/docs/database/sql-server-entity-framework-component.md +++ b/docs/database/sql-server-entity-framework-component.md @@ -62,7 +62,7 @@ The .NET Aspire SQL Server Entity Framework Core component provides multiple con ### Use configuration providers -The .NET Aspire SQL Server Entity Framework Core component supports . It loads the from configuration files such as _appsettings.json_ by using the `Aspire:SqlServer:EntityFrameworkCore:SqlClient` key. If you have set up your configurations in the `Aspire:SqlServer:EntityFrameworkCore:SqlClient` section you can just call the method without passing any parameter. +The .NET Aspire SQL Server Entity Framework Core component supports . It loads the from configuration files such as _appsettings.json_ by using the `Aspire:Microsoft:EntityFrameworkCore:SqlServer` key. If you have set up your configurations in the `Aspire:Microsoft:EntityFrameworkCore:SqlServer` section you can just call the method without passing any parameter. The following is an example of an _appsettings.json_ file that configures some of the available options: @@ -97,7 +97,7 @@ builder.AddSqlServerDbContext( ### Configure multiple DbContext connections -If you want to register more than one `DbContext` with different configuration, you can use `$"Aspire.SqlServer.EntityFrameworkCore.SqlClient:{typeof(TContext).Name}"` configuration section name. The json configuration would look like: +If you want to register more than one `DbContext` with different configuration, you can use `$"Aspire.Microsoft.EntityFrameworkCore.SqlServer:{typeof(TContext).Name}"` configuration section name. The json configuration would look like: ```json {