# EntityFrameworkCoreCosmosSettings

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

The settings relevant to accessing Azure Cosmos DB database using EntityFrameworkCore.

## Definition

```csharp
namespace Aspire.Microsoft.EntityFrameworkCore.Cosmos;

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

## Constructors

- [EntityFrameworkCoreCosmosSettings](/reference/api/csharp/aspire.microsoft.entityframeworkcore.cosmos/entityframeworkcorecosmossettings/constructors.md#constructor)

## Properties

- [AccountEndpoint](/reference/api/csharp/aspire.microsoft.entityframeworkcore.cosmos/entityframeworkcorecosmossettings/properties.md#accountendpoint) : `Uri?` `get; set` -- A `Uri` referencing the Azure Cosmos DB Endpoint. This is likely to be similar to "https://{account_name}.documents.azure.com".
- [ConnectionString](/reference/api/csharp/aspire.microsoft.entityframeworkcore.cosmos/entityframeworkcorecosmossettings/properties.md#connectionstring) : `string?` `get; set` -- The connection string of the Azure Cosmos DB server database to connect to.
- [Credential](/reference/api/csharp/aspire.microsoft.entityframeworkcore.cosmos/entityframeworkcorecosmossettings/properties.md#credential) : `TokenCredential?` `get; set` -- Gets or sets the credential used to authenticate to the Azure Cosmos DB endpoint.
- [DatabaseName](/reference/api/csharp/aspire.microsoft.entityframeworkcore.cosmos/entityframeworkcorecosmossettings/properties.md#databasename) : `string?` `get; set` -- The name of the database to connect to.
- [DisableTracing](/reference/api/csharp/aspire.microsoft.entityframeworkcore.cosmos/entityframeworkcorecosmossettings/properties.md#disabletracing) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
- [Region](/reference/api/csharp/aspire.microsoft.entityframeworkcore.cosmos/entityframeworkcorecosmossettings/properties.md#region) : `string?` `get; set` -- Gets or sets a string value that indicates what Azure region this client will run in.
- [RequestTimeout](/reference/api/csharp/aspire.microsoft.entityframeworkcore.cosmos/entityframeworkcorecosmossettings/properties.md#requesttimeout) : `TimeSpan?` `get; set` -- Gets or sets the time to wait for the response to come back from the network peer.
