# AzureCosmosDBDatabaseResource Properties

- Package: [Aspire.Hosting.Azure.CosmosDB](/reference/api/csharp/aspire.hosting.azure.cosmosdb.md)
- Type: [AzureCosmosDBDatabaseResource](/reference/api/csharp/aspire.hosting.azure.cosmosdb/azurecosmosdbdatabaseresource.md)
- Kind: `Properties`
- Members: `3`

Represents an Azure Cosmos DB Database. Initializes a new instance of the [AzureCosmosDBDatabaseResource](/reference/api/csharp/aspire.hosting.azure.cosmosdb/azurecosmosdbdatabaseresource.md) class.

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.CosmosDB/AzureCosmosDBDatabaseResource.cs#L40)

Gets the connection string expression for the Azure Cosmos DB database.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

## DatabaseName

- Name: `DatabaseName`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.CosmosDB/AzureCosmosDBDatabaseResource.cs)

Gets or sets the database name.

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

## Parent

- Name: `Parent`
- Modifiers: `get`
- Returns: [AzureCosmosDBResource](/reference/api/csharp/aspire.hosting.azure.cosmosdb/azurecosmosdbresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.CosmosDB/AzureCosmosDBDatabaseResource.cs#L34)

Gets the parent Azure Cosmos DB account resource.

```csharp
public AzureCosmosDBResource Parent { get; }
```
