# MongoDBEntityFrameworkCoreSettings Properties

- Package: [Aspire.MongoDB.EntityFrameworkCore](/reference/api/csharp/aspire.mongodb.entityframeworkcore.md)
- Type: [MongoDBEntityFrameworkCoreSettings](/reference/api/csharp/aspire.mongodb.entityframeworkcore/mongodbentityframeworkcoresettings.md)
- Kind: `Properties`
- Members: `5`

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

## ConnectionString

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

Gets or sets the connection string of the MongoDB database to connect to.

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

## DatabaseName

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

Gets or sets the name of the MongoDB database to connect to.

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

## DisableHealthChecks

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

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

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

## DisableTracing

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

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

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

## HealthCheckTimeout

- Name: `HealthCheckTimeout`
- Modifiers: `nullable` `get; set`
- Returns: `int?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.MongoDB.EntityFrameworkCore/MongoDBEntityFrameworkCoreSettings.cs)

Gets or sets a integer value that indicates the MongoDB health check timeout in milliseconds.

```csharp
public int? HealthCheckTimeout { get; set; }
```
