Search Results for

    Show / Hide Table of Contents

    Class ConnectionStringSettings

    Database connection string settings

    Inheritance
    Object
    ConnectionStringSettings
    Implements
    IConnectionStringSettings
    Namespace: Gossip.ConnectionStrings
    Assembly: Gossip.dll
    Syntax
    public class ConnectionStringSettings : object, IConnectionStringSettings

    Properties

    | Improve this Doc View Source

    ApplicationName

    Name of the application that is connecting to the database

    Declaration
    public string ApplicationName { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Database

    The database name

    Declaration
    public string Database { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    MachineName

    Name of the machine that is connecting to the database

    Declaration
    public string MachineName { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    MaxPoolSize

    The max number of database connection objects for the database connection string

    Declaration
    public int MaxPoolSize { get; set; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Password

    Database connection password

    Declaration
    public string Password { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Server

    The database server name (e.g. localhost)

    Declaration
    public string Server { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    UseIntegratedSecurity

    Use Windows Authentication to connect to the database server.

    Declaration
    public bool UseIntegratedSecurity { get; set; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Username

    Username of user/application that is connecting to the database

    Declaration
    public string Username { get; set; }
    Property Value
    Type Description
    String

    Implements

    IConnectionStringSettings
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX