ConnectionHelper MembersKentico 8.0 API Reference
The ConnectionHelper type exposes the following members.
Methods

  NameDescription
Public methodStatic memberBulkInsert
Performs a bulk insert of the data into a target database table
Public methodStatic memberClear
Clears the connection helper cache
Public methodStatic memberExecuteNonQuery(String, QueryDataParameters, QueryMacros)
Executes query and returns the number of affected rows.
Public methodStatic memberExecuteNonQuery(String, QueryDataParameters, QueryTypeEnum, Boolean)
Executes query and returns the number of affected rows.
Public methodStatic memberExecuteQuery(QueryParameters)
Executes query and returns result as a dataset.
Public methodStatic memberExecuteQuery(String, QueryDataParameters, QueryTypeEnum, Boolean)
Runs the query.
Public methodStatic memberExecuteQuery(String, QueryDataParameters, String, String, Int32, String)
Executes query and returns result as a dataset.
Public methodStatic memberExecuteQuery(String, QueryDataParameters, String, String, Int32, String, Int32, Int32, Int32 )
Executes query and returns result as a dataset.
Public methodStatic memberExecuteReader
Executes query and returns the results in a DataSet.
Public methodStatic memberExecuteScalar(String, QueryDataParameters, QueryMacros)
Executes query and returns result as a a single value.
Public methodStatic memberExecuteScalar(String, QueryDataParameters, QueryTypeEnum, Boolean)
Executes query and returns result as a a single value.
Public methodStatic memberGetConnection
Returns the connection.
Public methodStatic memberGetConnectionByName
Returns the connection.
Public methodStatic memberGetConnectionString(String)
Gets the connection string
Public methodStatic memberGetConnectionString(String, Boolean)
Gets the connection string
Public methodStatic memberGetConnectionString(SQLServerAuthenticationModeEnum, String, String, String, String, Int32, Boolean, String, Boolean)
Generates the connection string with the specified parameters.
Public methodStatic memberGetConnectionStringPrefix
Gets the connection string name for the given domain
Public methodStatic memberGetFirstFoundConnectionString
Gets the first found connection string by the prefix, if none found, returns null
Public methodStatic memberGetIsolationLevel
Returns the isolation level evaluated from the string representation.
Public methodStatic memberGetSqlConnectionString 
Returns the connection string.
Public methodStatic memberGetSqlConnectionString(String)
Returns the connection string.
Public methodStatic memberInitRequestContext
Initializes the request context to use proper database based on current domain name
Public methodStatic memberTestConnection(String)
Tests the given connection parameters.
Public methodStatic memberTestConnection(SQLServerAuthenticationModeEnum, String, String, String, String)
Tests the given connection parameters.
Public methodStatic memberUpdateAll
Runs the update all query of the given class name
Back to Top
Fields

  NameDescription
Public fieldStatic memberDEFAULT_CONNECTIONSTRING_NAME
Default connection string name
Public fieldStatic memberDefaultCommandTimeout
Command timeout for the SQL commands.
Public fieldStatic memberDisposeConnectionAfterClose
If true, disposes connection after the connection is closed.
Public fieldStatic memberCheckThreadSafety
If true, the thread safety of the connection access is checked (the connection must be used only in thread where it was originally created).
Public fieldStatic memberKeepContextConnectionOpen
If true, the connection is opened only once for the entire request and kept open until the end of the request.
Public fieldStatic memberLongRunningCommandTimeout
Command timeout in seconds for the SQL queries which are known to possibly take more time than standard command timeout. Long running queries have to be explicitly wrapped with CMSConnectionScope with its CommandTimeout property set to this value.
Public fieldStatic memberTransactionIsolationLevel
Isolation level for SQL operations with transactions.
Public fieldStatic memberUseContextConnection
If true, single connection is used for the entire request.
Back to Top
Properties

  NameDescription
Public propertyStatic memberConnectionAvailable
Returns true if the connection is available.
Public propertyStatic memberConnectionString
Global connection string.
Public propertyStatic memberConnectionStringName
Global connection string name
Public propertyStatic memberConnectionStringPrefix
Global connection string prefix
Public propertyStatic memberIsConnectionStringInitialized
Indicates whether connection string is initialized or not.
Public propertyStatic memberOpenedConnections
Number of the opened connections.
Public propertyStatic memberOpenedTransactions
Number of the opened transactions.
Back to Top
See Also