# RavenDBServerResource Properties

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

A resource that represents a RavenDB container.

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBServerResource.cs#L69-L73)

Gets the connection string expression for the RavenDB server, formatted as "http(s)://{Host}:{Port}" depending on the security setting.

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

## Databases

- Name: `Databases`
- Modifiers: `get`
- Returns: `IReadOnlyDictionary<string, string>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBServerResource.cs#L91)

Gets a read-only dictionary of databases associated with this server resource. The key represents the resource name, and the value represents the database name.

```csharp
public IReadOnlyDictionary<string, string> Databases { get; }
```

## Host

- Name: `Host`
- Modifiers: `get`
- Returns: `EndpointReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBServerResource.cs#L49)

Gets the host endpoint reference for this resource.

```csharp
public EndpointReferenceExpression Host { get; }
```

## Port

- Name: `Port`
- Modifiers: `get`
- Returns: `EndpointReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBServerResource.cs#L54)

Gets the port endpoint reference for this resource.

```csharp
public EndpointReferenceExpression Port { get; }
```

## PrimaryEndpoint

- Name: `PrimaryEndpoint`
- Modifiers: `get`
- Returns: `EndpointReference`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBServerResource.cs#L44)

Gets the primary endpoint for the RavenDB server.

```csharp
public EndpointReference PrimaryEndpoint { get; }
```

## TcpEndpoint

- Name: `TcpEndpoint`
- Modifiers: `get`
- Returns: `EndpointReference`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBServerResource.cs#L59)

Gets the TCP endpoint for the RavenDB server.

```csharp
public EndpointReference TcpEndpoint { get; }
```

## UriExpression

- Name: `UriExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBServerResource.cs#L83)

Gets the connection URI expression for the RavenDB server.

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

## Remarks

Format: `http://{host}:{port}` or `https://{host}:{port}` depending on security settings.
