Config
Provides access to configuration values for kCura.Data.RowDataGateway.
The default length a sql parameter can take and still be considered valid.
Gets the configuration value specifying how long to wait before assuming a deadlock has occurred.
Gets a connection string ready for formatting, where {0} = data Source, {1} = initial catalog.
Gets the connection string with which to connect to SQL Server.
Gets the database connection timeout associated with ConnectionString. If not configured, defaults to 30 seconds.
Gets the database prepend associated with ConnectionString.
Gets the configuration value specifying how long to allow a SQL query to run.
Gets a remote database connection based on the configured MasterDatabaseServer and MasterDatabaseName.
Gets the database name associated with ConnectionString.
Gets the database prepend associated with ConnectionString with a boolean indicating whether or not to specify the master database server name.
Gets the database server associated with ConnectionString.
Gets the database user name associated with ConnectionString.
Gets the database prepend using MasterDatabaseServer, MasterDatabaseUserName, and the provided database name.
Gets the configuration value specifying how many times to re-attempt a particular SQL statement.
Gets the configuration value specifying the maximum length, for logging, of parameters.
Gets the database prepend using the provided server, database name, and configured user name.
Gets the database prepend using the provided server, database name, and the 'dbo' user.
Gets the configuration value specifying the connection string of Relativity's service bus.
Gets the configuration values for kCura.Data.RowDataGateway.
public Config()
public static string FormatConnectionString(string connectionString, string dataSource, string initialCatalog)
Formats a provided connection string with the provided data source and initial catalog.
public static string FormatConnectionString(string connectionString, string dataSource, string initialCatalog, string user)
This should only be called for mocking purposes and not to set values in production code.
If you call this method in production code you will be shamed. This will only work if you call
it before the Settings property is called.
Sets the connection string used to retrieve configuration values.