ConnectionStringParser

Overview

The ConnectionStringParser static helper class provides methods to generate a connection string depending on database options and to parse it.

This class is used by the BaseConnection class to build connection strings and break them into separate components.

Location

 

AuxDriverParamName

 

const AuxDriverParamName: String = "AuxDriver";

 

const String AuxDriverParamName = "AuxDriver"

 

Dim AuxDriverParamName As String = "AuxDriver"

BuildProviderConnectionString

 

class method BuildProviderConnectionString(dataProviderInfo: DataProviderInfo; parameters: IDictionary<String, String>): String

 

static String BuildProviderConnectionString(DataProviderInfo dataProviderInfo, IDictionary<String, String> parameters)

 

Shared Function BuildProviderConnectionString(dataProviderInfo As DataProviderInfo, parameters As IDictionary<String, String>) As String

Parameters:

  • dataProviderInfo:
  • parameters:

CommandTimeoutParamName

 

const CommandTimeoutParamName: String = "CommandTimeout";

 

const String CommandTimeoutParamName = "CommandTimeout"

 

Dim CommandTimeoutParamName As String = "CommandTimeout"

Parse

 

class method Parse(connectionString: String; out driverName: String; out dataProviderInfo: DataProviderInfo; out databaseProfile: DatabaseProfile; out parameters: IDictionary<String, String>; var commandTimeout: Int32): Boolean

 

static Boolean Parse(String connectionString, out String driverName, out DataProviderInfo dataProviderInfo, out DatabaseProfile databaseProfile, out IDictionary<String, String> parameters, ref Int32 commandTimeout)

 

Shared Function Parse(connectionString As String, <OutAttribute> ByRef driverName As String, <OutAttribute> ByRef dataProviderInfo As DataProviderInfo, <OutAttribute> ByRef databaseProfile As DatabaseProfile, <OutAttribute> ByRef parameters As IDictionary<String, String>, ByRef commandTimeout As Int32) As Boolean

Parameters:

  • connectionString:
  • driverName:
  • dataProviderInfo:
  • databaseProfile:
  • parameters:
  • commandTimeout:

PasswordParamName

 

const PasswordParamName: String = "Password";

 

const String PasswordParamName = "Password"

 

Dim PasswordParamName As String = "Password"

UserIDParamName

 

const UserIDParamName: String = "User ID";

 

const String UserIDParamName = "User ID"

 

Dim UserIDParamName As String = "User ID"

 

AuxDriverParamName

 

const AuxDriverParamName: String = "AuxDriver";

 

const String AuxDriverParamName = "AuxDriver"

 

Dim AuxDriverParamName As String = "AuxDriver"

CommandTimeoutParamName

 

const CommandTimeoutParamName: String = "CommandTimeout";

 

const String CommandTimeoutParamName = "CommandTimeout"

 

Dim CommandTimeoutParamName As String = "CommandTimeout"

PasswordParamName

 

const PasswordParamName: String = "Password";

 

const String PasswordParamName = "Password"

 

Dim PasswordParamName As String = "Password"

UserIDParamName

 

const UserIDParamName: String = "User ID";

 

const String UserIDParamName = "User ID"

 

Dim UserIDParamName As String = "User ID"

 

BuildProviderConnectionString

 

class method BuildProviderConnectionString(dataProviderInfo: DataProviderInfo; parameters: IDictionary<String, String>): String

 

static String BuildProviderConnectionString(DataProviderInfo dataProviderInfo, IDictionary<String, String> parameters)

 

Shared Function BuildProviderConnectionString(dataProviderInfo As DataProviderInfo, parameters As IDictionary<String, String>) As String

Parameters:

  • dataProviderInfo:
  • parameters:

Parse

 

class method Parse(connectionString: String; out driverName: String; out dataProviderInfo: DataProviderInfo; out databaseProfile: DatabaseProfile; out parameters: IDictionary<String, String>; var commandTimeout: Int32): Boolean

 

static Boolean Parse(String connectionString, out String driverName, out DataProviderInfo dataProviderInfo, out DatabaseProfile databaseProfile, out IDictionary<String, String> parameters, ref Int32 commandTimeout)

 

Shared Function Parse(connectionString As String, <OutAttribute> ByRef driverName As String, <OutAttribute> ByRef dataProviderInfo As DataProviderInfo, <OutAttribute> ByRef databaseProfile As DatabaseProfile, <OutAttribute> ByRef parameters As IDictionary<String, String>, ByRef commandTimeout As Int32) As Boolean

Parameters:

  • connectionString:
  • driverName:
  • dataProviderInfo:
  • databaseProfile:
  • parameters:
  • commandTimeout: