NpgsqlSettings Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the client configuration settings for connecting to a PostgreSQL database using Npgsql.
public sealed class NpgsqlSettings
type NpgsqlSettings = class
Public NotInheritable Class NpgsqlSettings
- Inheritance
-
NpgsqlSettings
Constructors
NpgsqlSettings() |
Properties
ConnectionString |
The connection string of the PostgreSQL database to connect to. |
DisableHealthChecks |
Gets or sets a boolean value that indicates whether the database health check is disabled or not. |
DisableMetrics |
Gets or sets a boolean value that indicates whether the OpenTelemetry metrics are disabled or not. |
DisableTracing |
Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for