AspireSqlServerSqlClientExtensions
Class static net10.0
Extension methods for configuring SqlClient connection to Azure SQL, MS SQL server
namespace Microsoft.Extensions.Hosting;
public static class AspireSqlServerSqlClientExtensions{ // ...}Methods2
Section titled MethodsAddKeyedSqlServerClient(IHostApplicationBuilder, string, Action<MicrosoftDataSqlClientSettings>)extension Registers 'Scoped'
SqlClient.SqlConnection factory for given name for connecting Azure SQL, MsSQL database using Microsoft.Data.SqlClient. Configures health check, logging and telemetry for the SqlClient. AddSqlServerClient(IHostApplicationBuilder, string, Action<MicrosoftDataSqlClientSettings>)extension Registers 'Scoped'
SqlClient.SqlConnection factory for connecting Azure SQL, MS SQL database using Microsoft.Data.SqlClient. Configures health check, logging and telemetry for the SqlClient.