# NpgsqlSettings

- Kind: `class`
- Package: [Aspire.Npgsql](/reference/api/csharp/aspire.npgsql.md)
- Version: `13.4.0`
- Namespace: `Aspire.Npgsql`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Npgsql/NpgsqlSettings.cs)

Provides the client configuration settings for connecting to a PostgreSQL database using Npgsql.

## Definition

```csharp
namespace Aspire.Npgsql;

public class NpgsqlSettings
{
    // ...
}
```

## Constructors

- [NpgsqlSettings](/reference/api/csharp/aspire.npgsql/npgsqlsettings/constructors.md#constructor)

## Properties

- [ConnectionString](/reference/api/csharp/aspire.npgsql/npgsqlsettings/properties.md#connectionstring) : `string?` `get; set` -- The connection string of the PostgreSQL database to connect to.
- [DisableHealthChecks](/reference/api/csharp/aspire.npgsql/npgsqlsettings/properties.md#disablehealthchecks) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the database health check is disabled or not.
- [DisableMetrics](/reference/api/csharp/aspire.npgsql/npgsqlsettings/properties.md#disablemetrics) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry metrics are disabled or not.
- [DisableTracing](/reference/api/csharp/aspire.npgsql/npgsqlsettings/properties.md#disabletracing) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
