# NpgsqlSettings Properties

- Package: [Aspire.Npgsql](/reference/api/csharp/aspire.npgsql.md)
- Type: [NpgsqlSettings](/reference/api/csharp/aspire.npgsql/npgsqlsettings.md)
- Kind: `Properties`
- Members: `4`

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

## ConnectionString

- Name: `ConnectionString`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Npgsql/NpgsqlSettings.cs)

The connection string of the PostgreSQL database to connect to.

```csharp
public string? ConnectionString { get; set; }
```

## DisableHealthChecks

- Name: `DisableHealthChecks`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Npgsql/NpgsqlSettings.cs)

Gets or sets a boolean value that indicates whether the database health check is disabled or not.

```csharp
public bool DisableHealthChecks { get; set; }
```

## DisableMetrics

- Name: `DisableMetrics`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Npgsql/NpgsqlSettings.cs)

Gets or sets a boolean value that indicates whether the OpenTelemetry metrics are disabled or not.

```csharp
public bool DisableMetrics { get; set; }
```

## DisableTracing

- Name: `DisableTracing`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Npgsql/NpgsqlSettings.cs)

Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.

```csharp
public bool DisableTracing { get; set; }
```
