Class SqlConnectionPropertiesBase
Inheritance
Implements
Inherited Members
Namespace: ArgentSea.Sql
Assembly: ArgentSea.Sql.dll
Syntax
public abstract class SqlConnectionPropertiesBase : DataConnectionConfigurationBase, INotifyPropertyChanged
Properties
| Improve this Doc View SourceApplicationIntent
Declares the application workload type when connecting to a database in an SQL Server Availability Group.
Declaration
public ApplicationIntent? ApplicationIntent { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Data.SqlClient.ApplicationIntent> |
ApplicationName
The optional application name parameter to be sent to the backend during connection initiation.
Declaration
public string ApplicationName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ConnectTimeout
Gets or sets the length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error. Defaults to 5 seconds (before retry) if not set.
Declaration
public int? ConnectTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
CurrentLanguage
Gets or sets the SQL Server Language record name.
Declaration
public string CurrentLanguage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DataSource
Gets or sets the name or network address of the instance of SQL Server to connect to.
Declaration
public string DataSource { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Encrypt
Gets or sets a Boolean value that indicates whether SQL Server uses SSL encryption for all data sent between the client and server if the server has a certificate installed.
Declaration
public bool? Encrypt { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
FailoverPartner
Gets or sets the name or address of the partner server to connect to if the primary server is down.
Declaration
public string FailoverPartner { get; set; }
Property Value
Type | Description |
---|---|
System.String |
InitialCatalog
Gets or sets the name of the database associated with the connection.
Declaration
public string InitialCatalog { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 |
---|---|
System.Nullable<System.Int32> |
MaxPoolSize
Gets or sets the maximum number of connections allowed in the connection pool for this specific connection string.
Declaration
public int? MaxPoolSize { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
MinPoolSize
Gets or sets the minimum number of connections allowed in the connection pool for this specific connection string.
Declaration
public int? MinPoolSize { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
MultipleActiveResultSets
When true, an application can maintain multiple active result sets (MARS). When false, an application must process or cancel all result sets from one batch before it can execute any other batch on that connection.
Declaration
public bool? MultipleActiveResultSets { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
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 |
---|---|
System.Nullable<System.Boolean> |
PacketSize
Gets or sets the size in bytes of the network packets used to communicate with an instance of SQL Server.
Declaration
public int? PacketSize { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
PersistSecurityInfo
Gets or sets a Boolean value that indicates if security-sensitive information, such as the password, is not returned as part of the connection if the connection is open or has ever been in an open state.
Declaration
public bool? PersistSecurityInfo { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Pooling
Gets or sets a Boolean value that indicates whether the connection will be pooled or explicitly opened every time that the connection is requested.
Declaration
public bool? Pooling { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Replication
Gets or sets a Boolean value that indicates whether replication is supported using the connection.
Declaration
public bool? Replication { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
TransactionBinding
Gets or sets a string value that indicates how the connection maintains its association with an enlisted System.Transactions transaction.
Declaration
public string TransactionBinding { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TrustServerCertificate
Gets or sets a value that indicates whether the channel will be encrypted while bypassing walking the certificate chain to validate trust.
Declaration
public bool? TrustServerCertificate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
TypeSystemVersion
Gets or sets a string value that indicates the type system the application expects.
Declaration
public string TypeSystemVersion { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UserInstance
Gets or sets a value that indicates whether to redirect the connection from the default SQL Server Express instance to a runtime-initiated instance running under the account of the caller.
Declaration
public bool? UserInstance { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
WorkstationID
Gets or sets the name of the workstation connecting to SQL Server.
Declaration
public string WorkstationID { get; set; }
Property Value
Type | Description |
---|---|
System.String |