# DbxConnectionConfig

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.Dbx](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx.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.Dbx/DbxConnectionConfig.cs)

Represents a database connection configuration for dbx.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class DbxConnectionConfig
{
    // ...
}
```

## Constructors

- [DbxConnectionConfig](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/constructors.md#constructor)

## Properties

- [ConnectionString](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#connectionstring) : `string?` `get; set` -- Gets or sets an explicit connection string, overriding individual fields.
- [ConnectTimeoutSecs](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#connecttimeoutsecs) : `ulong` `get; set` -- Gets or sets the connection timeout in seconds.
- [Database](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#database) : `string?` `get; set` -- Gets or sets the database name.
- [DbType](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#dbtype) : [DbxDatabaseType](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxdatabasetype.md) `get; set` -- Gets or sets the database type.
- [Host](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#host) : `string` `get; set` -- Gets or sets the host address.
- [Id](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#id) : `string` `get; set` -- Gets or sets the unique identifier for the connection.
- [JdbcDriverClass](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#jdbcdriverclass) : `string?` `get; set` -- Gets or sets the JDBC driver class.
- [JdbcDriverPaths](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#jdbcdriverpaths) : `List<string>` `get; set` -- Gets or sets the JDBC driver paths.
- [Name](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#name) : `string` `get; set` -- Gets or sets the display name of the connection.
- [Password](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#password) : `string` `get; set` -- Gets or sets the password for authentication.
- [Port](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#port) : `ushort` `get; set` -- Gets or sets the port number.
- [QueryTimeoutSecs](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#querytimeoutsecs) : `ulong` `get; set` -- Gets or sets the query timeout in seconds.
- [RedisClusterNodes](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#redisclusternodes) : `string?` `get; set` -- Gets or sets the Redis cluster nodes (comma-separated).
- [RedisConnectionMode](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#redisconnectionmode) : `string?` `get; set` -- Gets or sets the Redis connection mode (e.g. "standalone", "sentinel", "cluster").
- [RedisSentinelMaster](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#redissentinelmaster) : `string?` `get; set` -- Gets or sets the Redis Sentinel master name.
- [RedisSentinelNodes](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#redissentinelnodes) : `string?` `get; set` -- Gets or sets the Redis Sentinel nodes (comma-separated).
- [RedisSentinelPassword](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#redissentinelpassword) : `string?` `get; set` -- Gets or sets the Redis Sentinel password.
- [RedisSentinelTls](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#redissentineltls) : `bool` `get; set` -- Gets or sets whether TLS is enabled for Redis Sentinel.
- [RedisSentinelUsername](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#redissentinelusername) : `string?` `get; set` -- Gets or sets the Redis Sentinel username.
- [Ssl](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#ssl) : `bool` `get; set` -- Gets or sets whether SSL is enabled.
- [UrlParams](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#urlparams) : `string?` `get; set` -- Gets or sets optional URL parameters.
- [Username](/reference/api/csharp/communitytoolkit.aspire.hosting.dbx/dbxconnectionconfig/properties.md#username) : `string` `get; set` -- Gets or sets the username for authentication.
