AspirePostgreSqlNpgsqlExtensions
Classstaticnet10.0
Extension methods for connecting PostgreSQL database with Npgsql client
namespace Microsoft.Extensions.Hosting;
public static class AspirePostgreSqlNpgsqlExtensions{ // ...}Methods2
Section titled Methods 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. Registers
NpgsqlDataSource service for connecting PostgreSQL database with Npgsql client. Configures health check, logging and telemetry for the Npgsql client.