# RavenDBDatabaseResource Properties

- Package: [CommunityToolkit.Aspire.Hosting.RavenDB](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb.md)
- Type: [RavenDBDatabaseResource](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb/ravendbdatabaseresource.md)
- Kind: `Properties`
- Members: `3`

A resource that represents a RavenDB database. This is a child resource of a [RavenDBServerResource](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb/ravendbserverresource.md).

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBDatabaseResource.cs#L25)

Gets the connection string expression for the RavenDB database, derived from the parent server's connection string.

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

## DatabaseName

- Name: `DatabaseName`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBDatabaseResource.cs#L19)

Gets the name of the database.

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

## Parent

- Name: `Parent`
- Modifiers: `get`
- Returns: [RavenDBServerResource](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb/ravendbserverresource.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBDatabaseResource.cs#L14)

Gets the parent RavenDB server resource associated with this database.

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