Skip to content
DocsTry Aspire
DocsTry

NpgsqlSettings Properties

ClassProperties4 members
Provides the client configuration settings for connecting to a PostgreSQL database using Npgsql.
ConnectionStringSection titled ConnectionStringnullablestring?
The connection string of the PostgreSQL database to connect to.
public string? ConnectionString { get; set; }
DisableHealthChecksSection titled DisableHealthChecksbool
Gets or sets a boolean value that indicates whether the database health check is disabled or not.
public bool DisableHealthChecks { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry metrics are disabled or not.
public bool DisableMetrics { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
public bool DisableTracing { get; set; }