# NpgsqlEntityFrameworkCorePostgreSQLSettings

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

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

## Definition

```csharp
namespace Aspire.Npgsql.EntityFrameworkCore.PostgreSQL;

public class NpgsqlEntityFrameworkCorePostgreSQLSettings
{
    // ...
}
```

## Constructors

- [NpgsqlEntityFrameworkCorePostgreSQLSettings](/reference/api/csharp/aspire.npgsql.entityframeworkcore.postgresql/npgsqlentityframeworkcorepostgresqlsettings/constructors.md#constructor)

## Properties

- [CommandTimeout](/reference/api/csharp/aspire.npgsql.entityframeworkcore.postgresql/npgsqlentityframeworkcorepostgresqlsettings/properties.md#commandtimeout) : `int?` `get; set` -- Gets or sets the time in seconds to wait for the command to execute.
- [ConnectionString](/reference/api/csharp/aspire.npgsql.entityframeworkcore.postgresql/npgsqlentityframeworkcorepostgresqlsettings/properties.md#connectionstring) : `string?` `get; set` -- Gets or sets the connection string of the PostgreSQL database to connect to.
- [DisableHealthChecks](/reference/api/csharp/aspire.npgsql.entityframeworkcore.postgresql/npgsqlentityframeworkcorepostgresqlsettings/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.entityframeworkcore.postgresql/npgsqlentityframeworkcorepostgresqlsettings/properties.md#disablemetrics) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry metrics are disabled or not.
- [DisableRetry](/reference/api/csharp/aspire.npgsql.entityframeworkcore.postgresql/npgsqlentityframeworkcorepostgresqlsettings/properties.md#disableretry) : `bool` `get; set` -- Gets or sets whether retries should be disabled.
- [DisableTracing](/reference/api/csharp/aspire.npgsql.entityframeworkcore.postgresql/npgsqlentityframeworkcorepostgresqlsettings/properties.md#disabletracing) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
