DataConnection Class |
Namespace: CMS.DataProviderSQL
public class DataConnection : AbstractDataConnection
The DataConnection type exposes the following members.
Name | Description | |
---|---|---|
DataConnection |
Constructor.
|
Name | Description | |
---|---|---|
mCommandTimeout |
Command timeout.
(Inherited from AbstractDataConnection.) | |
mConnectionString |
Connection string for specific provider.
(Inherited from AbstractDataConnection.) | |
mConnectionStringName |
Connection string name
(Inherited from AbstractDataConnection.) | |
mLastError |
Last connection error
(Inherited from AbstractDataConnection.) | |
mNativeConnection |
Native connection object. It depends on provider type.
(Inherited from AbstractDataConnection.) | |
mNestedConnections |
Nested connections indexed by the connection string [connectionString -> IDbConnection]
(Inherited from AbstractDataConnection.) | |
mNestedConnectionsList |
List of nested connections
(Inherited from AbstractDataConnection.) | |
mNestedOpenConnections |
List of nested connections that were automatically opened
(Inherited from AbstractDataConnection.) | |
mNestedOpenTransactions |
List of nested connections that were automatically opened with transaction
(Inherited from AbstractDataConnection.) | |
mUseScopeConnection |
If true, the connection uses the scope connection
(Inherited from AbstractDataConnection.) |
Name | Description | |
---|---|---|
CommandTimeout |
Command timeout.
(Inherited from AbstractDataConnection.) | |
ConnectionString |
Connection string for specific provider.
(Inherited from AbstractDataConnection.) | |
DisableConnectionDebug |
If true, the debug is disabled on this connection
(Inherited from AbstractDataConnection.) | |
DisableQueryDebug |
If true, the debug of queries is disabled on this connection
(Inherited from AbstractDataConnection.) | |
KeepOpen |
If true, the connection stays open even if close is requested.
(Inherited from AbstractDataConnection.) | |
LocalKeepOpen |
If true, the connection stays open even if close is requested.
(Inherited from AbstractDataConnection.) | |
LocalTransaction |
Transaction object of local instance.
(Inherited from AbstractDataConnection.) | |
NativeConnection |
Native connection object. It depends on provider type.
(Inherited from AbstractDataConnection.) | |
NativeDBConnection |
Native connection object. It depends on provider type.
(Inherited from AbstractDataConnection.) | |
Transaction |
Transaction object.
(Inherited from AbstractDataConnection.) | |
UseScopeConnection |
If true, the connection uses the scope connection
(Inherited from AbstractDataConnection.) |
Name | Description | |
---|---|---|
AddParameters |
Adds the given parameters to the SQL command
(Inherited from AbstractDataConnection.) | |
BeginTransaction |
Begins a new transaction.
(Inherited from AbstractDataConnection.) | |
BeginTransaction(IsolationLevel) |
Begins a new transaction.
(Inherited from AbstractDataConnection.) | |
BulkInsert |
Performs a bulk insert of the data into a target database table
(Overrides AbstractDataConnectionBulkInsert(DataTable, String, BulkInsertSettings).) | |
CheckThreadSafety |
Checks the thread safety of current operation.
(Inherited from AbstractDataConnection.) | |
Close |
Closes connection to the database.
(Inherited from AbstractDataConnection.) | |
CommitTransaction |
Commits current transaction.
(Inherited from AbstractDataConnection.) | |
CreateCommand |
Creates a new SQL command
(Overrides AbstractDataConnectionCreateCommand(String).) | |
CreateDataAdapter |
Creates a data adapter
(Overrides AbstractDataConnectionCreateDataAdapter.) | |
CreateNativeConnection |
Creates a new native connection
(Overrides AbstractDataConnectionCreateNativeConnection.) | |
CreateParameter(DataParameter) |
Creates a SQL parameter from the given data parameter
(Inherited from AbstractDataConnection.) | |
CreateParameter(String, Object) |
Creates a new command parameter
(Overrides AbstractDataConnectionCreateParameter(String, Object).) | |
Dispose |
Disposes the connection object.
(Inherited from AbstractDataConnection.) | |
ExecuteNonQuery |
Executes the query and returns the number of rows affected.
(Inherited from AbstractDataConnection.) | |
ExecuteNonQueryAsync | An asynchronous version of ExecuteNonQuery(String, QueryDataParameters, QueryTypeEnum, Boolean) which executes the query asynchronously and returns the number of rows affected. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object. | |
ExecuteQuery |
Returns result of the query.
(Inherited from AbstractDataConnection.) | |
ExecuteReader |
Executes the query and returns result of the query as a DbDataReader.
(Inherited from AbstractDataConnection.) | |
ExecuteReaderAsync | An asynchronous version of ExecuteReader(String, QueryDataParameters, QueryTypeEnum, CommandBehavior) which executes the query asynchronously and returns result as a DbDataReader. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object. | |
ExecuteScalar |
Executes the query and returns the first column of the first row in the result set returned by the query.
Additional columns or rows are ignored.
(Inherited from AbstractDataConnection.) | |
ExecuteScalarAsync | An asynchronous version of ExecuteScalar(String, QueryDataParameters, QueryTypeEnum, Boolean), which executes the query asynchronously and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object. | |
GetExecutingConnection |
Gets the connection that executes the given query
(Inherited from AbstractDataConnection.) | |
GetNestedConnection |
Gets the nested connection with the given connection string
(Inherited from AbstractDataConnection.) | |
GetXmlSchema |
Returns XML schema for specified table.
(Inherited from AbstractDataConnection.) | |
HandleDbError |
Handles the database error. Returns false, if the error was not handled
(Overrides AbstractDataConnectionHandleDbError(String, DbException).) | |
HandleError |
Handles the error. Returns false, if the error was not handled
(Inherited from AbstractDataConnection.) | |
IsOpen |
Returns true if connection to the database is open.
(Inherited from AbstractDataConnection.) | |
IsTransaction |
Indicates if transaction is running.
(Inherited from AbstractDataConnection.) | |
LoadDefaultConnectionString |
Loads the default connection string
(Inherited from AbstractDataConnection.) | |
LogConnectionOperation |
Logs the connection operation to the query log.
(Inherited from AbstractDataConnection.) | |
NativeConnectionExists |
Returns true if the native connection exists.
(Inherited from AbstractDataConnection.) | |
NativeDBConnectionExists |
Returns true if the native connection exists.
(Inherited from AbstractDataConnection.) | |
Open |
Opens connection to the database.
(Inherited from AbstractDataConnection.) | |
PrepareCommand |
Prepares the SQL command for the query.
(Inherited from AbstractDataConnection.) | |
ProcessOutParameters |
Ensures propagation of output (or input-output or stored procedure return value) parameters after the SQL command execution to the query parameters collection.
(Overrides AbstractDataConnectionProcessOutParameters(DbParameterCollection, IEnumerableDataParameter).) | |
RollbackTransaction |
Rollbacks current transaction.
(Inherited from AbstractDataConnection.) | |
SetParameterType |
Sets the parameter type to a destination type
(Inherited from AbstractDataConnection.) | |
ValidateTransaction |
Validates the transaction
(Inherited from AbstractDataConnection.) |