# DuckDBResource

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.DuckDB](/reference/api/csharp/communitytoolkit.aspire.hosting.duckdb.md)
- Version: `13.4.1-beta.706`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.DuckDB/DuckDBResource.cs)
- Inherits: `Resource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IValueProvider`, `IValueWithReferences`

Represents a resource for a DuckDB database with a specified name and database path.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public class DuckDBResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## Constructors

- [DuckDBResource(string, string, string)](/reference/api/csharp/communitytoolkit.aspire.hosting.duckdb/duckdbresource/constructors.md#constructor-string-string-string) -- Represents a resource for a DuckDB database with a specified name and database path.

## Properties

- [ConnectionStringExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.duckdb/duckdbresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Describes the connection string format string used for this resource.
