AspireAzureNpgsqlExtensions
Class static net10.0
Extension methods for connecting to an Azure Database for PostgreSQL with Npgsql client
namespace Microsoft.Extensions.Hosting;
public static class AspireAzureNpgsqlExtensions{ // ...}Methods2
Section titled MethodsAddAzureNpgsqlDataSource(IHostApplicationBuilder, string, Action<AzureNpgsqlSettings>, Action<NpgsqlDataSourceBuilder>)extension Registers
NpgsqlDataSource service for connecting PostgreSQL database with Npgsql client. Configures health check, logging and telemetry for the Npgsql client. AddKeyedAzureNpgsqlDataSource(IHostApplicationBuilder, string, Action<AzureNpgsqlSettings>, Action<NpgsqlDataSourceBuilder>)extension Registers
NpgsqlDataSource as a keyed service for given name for connecting PostgreSQL database with Npgsql client. Configures health check, logging and telemetry for the Npgsql client.