# ClickHouseDatabaseResource

- Kind: `class`
- Package: [Aspire.Hosting.ClickHouse](/reference/api/csharp/aspire.hosting.clickhouse.md)
- Version: `13.3.5`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/ClickHouse/ClickHouse.Aspire/tree/75b29355a64040ad8af86d99635c84567f3d9932)
- Inherits: `Resource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IResourceWithParent`, `IResourceWithParent<ClickHouseServerResource>`, `IValueProvider`, `IValueWithReferences`

Represents an abstract resource that can be used by an application, that implements `ApplicationModel.IResource`.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class ClickHouseDatabaseResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IResourceWithParent,
      Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.ApplicationModel.ClickHouseServerResource>,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## Constructors

- [ClickHouseDatabaseResource(string, string, ClickHouseServerResource)](/reference/api/csharp/aspire.hosting.clickhouse/clickhousedatabaseresource/constructors.md#constructor-string-string-clickhouseserverresource)

## Properties

- [ConnectionStringExpression](/reference/api/csharp/aspire.hosting.clickhouse/clickhousedatabaseresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Describes the connection string format string used for this resource.
- [DatabaseName](/reference/api/csharp/aspire.hosting.clickhouse/clickhousedatabaseresource/properties.md#databasename) : `string` `get`
- [Parent](/reference/api/csharp/aspire.hosting.clickhouse/clickhousedatabaseresource/properties.md#parent) : [ClickHouseServerResource](/reference/api/csharp/aspire.hosting.clickhouse/clickhouseserverresource.md) `get` -- Gets the parent resource of type `T`.
