Class ConnectionStringSettings
Database connection string settings
Implements
Namespace: Gossip.ConnectionStrings
Assembly: Gossip.dll
Syntax
public class ConnectionStringSettings : object, IConnectionStringSettings
Properties
| Improve this Doc View SourceApplicationName
Name of the application that is connecting to the database
Declaration
public string ApplicationName { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
ConnectRetryCount
The number of reconnections attempted after identifying that there was an idle connection failure. This must be an integer between 0 and 255. Default is 1. Set to 0 to disable reconnecting on idle connection failures. An ArgumentException will be thrown if set to a value outside of the allowed range.
Declaration
public int ConnectRetryCount { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
ConnectRetryInterval
Amount of time (in seconds) between each reconnection attempt after identifying that there was an idle connection failure. This must be an integer between 1 and 60. The default is 10 seconds. An ArgumentException will be thrown if set to a value outside of the allowed range.
Declaration
public int ConnectRetryInterval { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Database
The database name
Declaration
public string Database { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
DefaultCommandTimeout
The time in seconds that the connection will wait for a command to execute
Declaration
public int DefaultCommandTimeout { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
LoadBalanceTimeout
Gets or sets the minimum time, in seconds, for the connection to live in the connection pool before being destroyed.
Declaration
public int LoadBalanceTimeout { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
MachineName
Name of the machine that is connecting to the database
Declaration
public string MachineName { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
MaxPoolSize
The max number of database connection objects for the database connection string
Declaration
public int MaxPoolSize { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
MultiSubnetFailover
If your application is connecting to an AlwaysOn availability group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of and connection to the (currently) active server.
Declaration
public bool MultiSubnetFailover { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Password
Database connection password
Declaration
public string Password { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Server
The database server name (e.g. localhost)
Declaration
public string Server { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
UseIntegratedSecurity
Use Windows Authentication to connect to the database server.
Declaration
public bool UseIntegratedSecurity { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Username
Username of user/application that is connecting to the database
Declaration
public string Username { get; set; }
Property Value
| Type | Description |
|---|---|
| String |