AspirePostgreSqlNpgsqlExtensions
Class static net10.0
Extension methods for connecting PostgreSQL database with Npgsql client
namespace Microsoft.Extensions.Hosting;
public static class AspirePostgreSqlNpgsqlExtensions{ // ...}Methods2
Section titled MethodsAddKeyedNpgsqlDataSource(IHostApplicationBuilder, string, Action<NpgsqlSettings>, 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. AddNpgsqlDataSource(IHostApplicationBuilder, string, Action<NpgsqlSettings>, Action<NpgsqlDataSourceBuilder>)extension Registers
NpgsqlDataSource service for connecting PostgreSQL database with Npgsql client. Configures health check, logging and telemetry for the Npgsql client.