# EntityFrameworkCoreCosmosSettings Properties

- Package: [Aspire.Microsoft.EntityFrameworkCore.Cosmos](/reference/api/csharp/aspire.microsoft.entityframeworkcore.cosmos.md)
- Type: [EntityFrameworkCoreCosmosSettings](/reference/api/csharp/aspire.microsoft.entityframeworkcore.cosmos/entityframeworkcorecosmossettings.md)
- Kind: `Properties`
- Members: `7`

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

## AccountEndpoint

- Name: `AccountEndpoint`
- Modifiers: `nullable` `get; set`
- Returns: `Uri?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Microsoft.EntityFrameworkCore.Cosmos/EntityFrameworkCoreCosmosSettings.cs)

A `Uri` referencing the Azure Cosmos DB Endpoint. This is likely to be similar to "https://{account_name}.documents.azure.com".

```csharp
public Uri? AccountEndpoint { get; set; }
```

## Remarks

Must not contain shared access signature. Used along with [EntityFrameworkCoreCosmosSettings.Credential](/reference/api/csharp/aspire.microsoft.entityframeworkcore.cosmos/entityframeworkcorecosmossettings/properties.md#credential) to establish the connection.

## ConnectionString

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

The connection string of the Azure Cosmos DB server database to connect to.

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

## Credential

- Name: `Credential`
- Modifiers: `nullable` `get; set`
- Returns: `TokenCredential?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Microsoft.EntityFrameworkCore.Cosmos/EntityFrameworkCoreCosmosSettings.cs)

Gets or sets the credential used to authenticate to the Azure Cosmos DB endpoint.

```csharp
public TokenCredential? Credential { get; set; }
```

## DatabaseName

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

The name of the database to connect to.

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

## DisableTracing

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

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

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

## Region

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

Gets or sets a string value that indicates what Azure region this client will run in.

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

## RequestTimeout

- Name: `RequestTimeout`
- Modifiers: `nullable` `get; set`
- Returns: `TimeSpan?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Microsoft.EntityFrameworkCore.Cosmos/EntityFrameworkCoreCosmosSettings.cs)

Gets or sets the time to wait for the response to come back from the network peer.

```csharp
public TimeSpan? RequestTimeout { get; set; }
```
