AspireAzureNpgsqlExtensions
Classstaticnet10.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 Methods Registers
NpgsqlDataSource service for connecting PostgreSQL database with Npgsql client. Configures health check, logging and telemetry for the Npgsql client. 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.