# MongoDBEntityFrameworkCoreSettings

- Kind: `class`
- Package: [Aspire.MongoDB.EntityFrameworkCore](/reference/api/csharp/aspire.mongodb.entityframeworkcore.md)
- Version: `13.4.0`
- Namespace: `Aspire.MongoDB.EntityFrameworkCore`
- Target framework: `net9.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.MongoDB.EntityFrameworkCore/MongoDBEntityFrameworkCoreSettings.cs)

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

## Definition

```csharp
namespace Aspire.MongoDB.EntityFrameworkCore;

public sealed class MongoDBEntityFrameworkCoreSettings
{
    // ...
}
```

## Constructors

- [MongoDBEntityFrameworkCoreSettings](/reference/api/csharp/aspire.mongodb.entityframeworkcore/mongodbentityframeworkcoresettings/constructors.md#constructor)

## Properties

- [ConnectionString](/reference/api/csharp/aspire.mongodb.entityframeworkcore/mongodbentityframeworkcoresettings/properties.md#connectionstring) : `string?` `get; set` -- Gets or sets the connection string of the MongoDB database to connect to.
- [DatabaseName](/reference/api/csharp/aspire.mongodb.entityframeworkcore/mongodbentityframeworkcoresettings/properties.md#databasename) : `string?` `get; set` -- Gets or sets the name of the MongoDB database to connect to.
- [DisableHealthChecks](/reference/api/csharp/aspire.mongodb.entityframeworkcore/mongodbentityframeworkcoresettings/properties.md#disablehealthchecks) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the MongoDB health check is disabled or not.
- [DisableTracing](/reference/api/csharp/aspire.mongodb.entityframeworkcore/mongodbentityframeworkcoresettings/properties.md#disabletracing) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
- [HealthCheckTimeout](/reference/api/csharp/aspire.mongodb.entityframeworkcore/mongodbentityframeworkcoresettings/properties.md#healthchecktimeout) : `int?` `get; set` -- Gets or sets a integer value that indicates the MongoDB health check timeout in milliseconds.
