# DbxConnectionConfig Properties

- Package: [CommunityToolkit.Aspire.Hosting.Dbx](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx.md)
- Type: [DbxConnectionConfig](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig.md)
- Kind: `Properties`
- Members: `22`

Represents a database connection configuration for dbx.

<a id="connectionstring"></a>

## ConnectionString

- Name: `ConnectionString`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets an explicit connection string, overriding individual fields.

```csharp
public string? ConnectionString { get; set; }
```

<a id="connecttimeoutsecs"></a>

## ConnectTimeoutSecs

- Name: `ConnectTimeoutSecs`
- Modifiers: `get; set`
- Returns: `ulong`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the connection timeout in seconds.

```csharp
public ulong ConnectTimeoutSecs { get; set; }
```

<a id="database"></a>

## Database

- Name: `Database`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the database name.

```csharp
public string? Database { get; set; }
```

<a id="dbtype"></a>

## DbType

- Name: `DbType`
- Modifiers: `get; set`
- Returns: [DbxDatabaseType](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxdatabasetype.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the database type.

```csharp
public DbxDatabaseType DbType { get; set; }
```

<a id="host"></a>

## Host

- Name: `Host`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the host address.

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

<a id="id"></a>

## Id

- Name: `Id`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the unique identifier for the connection.

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

<a id="jdbcdriverclass"></a>

## JdbcDriverClass

- Name: `JdbcDriverClass`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the JDBC driver class.

```csharp
public string? JdbcDriverClass { get; set; }
```

<a id="jdbcdriverpaths"></a>

## JdbcDriverPaths

- Name: `JdbcDriverPaths`
- Modifiers: `get; set`
- Returns: `List<string>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the JDBC driver paths.

```csharp
public List<string> JdbcDriverPaths { get; set; }
```

<a id="name"></a>

## Name

- Name: `Name`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the display name of the connection.

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

<a id="password"></a>

## Password

- Name: `Password`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the password for authentication.

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

<a id="port"></a>

## Port

- Name: `Port`
- Modifiers: `get; set`
- Returns: `ushort`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the port number.

```csharp
public ushort Port { get; set; }
```

<a id="querytimeoutsecs"></a>

## QueryTimeoutSecs

- Name: `QueryTimeoutSecs`
- Modifiers: `get; set`
- Returns: `ulong`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the query timeout in seconds.

```csharp
public ulong QueryTimeoutSecs { get; set; }
```

<a id="redisclusternodes"></a>

## RedisClusterNodes

- Name: `RedisClusterNodes`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the Redis cluster nodes (comma-separated).

```csharp
public string? RedisClusterNodes { get; set; }
```

<a id="redisconnectionmode"></a>

## RedisConnectionMode

- Name: `RedisConnectionMode`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the Redis connection mode (e.g. "standalone", "sentinel", "cluster").

```csharp
public string? RedisConnectionMode { get; set; }
```

<a id="redissentinelmaster"></a>

## RedisSentinelMaster

- Name: `RedisSentinelMaster`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the Redis Sentinel master name.

```csharp
public string? RedisSentinelMaster { get; set; }
```

<a id="redissentinelnodes"></a>

## RedisSentinelNodes

- Name: `RedisSentinelNodes`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the Redis Sentinel nodes (comma-separated).

```csharp
public string? RedisSentinelNodes { get; set; }
```

<a id="redissentinelpassword"></a>

## RedisSentinelPassword

- Name: `RedisSentinelPassword`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the Redis Sentinel password.

```csharp
public string? RedisSentinelPassword { get; set; }
```

<a id="redissentineltls"></a>

## RedisSentinelTls

- Name: `RedisSentinelTls`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets whether TLS is enabled for Redis Sentinel.

```csharp
public bool RedisSentinelTls { get; set; }
```

<a id="redissentinelusername"></a>

## RedisSentinelUsername

- Name: `RedisSentinelUsername`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the Redis Sentinel username.

```csharp
public string? RedisSentinelUsername { get; set; }
```

<a id="ssl"></a>

## Ssl

- Name: `Ssl`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets whether SSL is enabled.

```csharp
public bool Ssl { get; set; }
```

<a id="urlparams"></a>

## UrlParams

- Name: `UrlParams`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets optional URL parameters.

```csharp
public string? UrlParams { get; set; }
```

<a id="username"></a>

## Username

- Name: `Username`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Dbx/DbxConnectionConfig.cs)

Gets or sets the username for authentication.

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