AbstractDataConnection Class |
Namespace: CMS.DataEngine
public abstract class AbstractDataConnection : IDataConnection, IDisposable, INotCopyThreadItem
The AbstractDataConnection type exposes the following members.
Name | Description | |
---|---|---|
AbstractDataConnection |
Constructor.
|
Name | Description | |
---|---|---|
mAdvancedSettings |
Advanced settings.
| |
mCommandTimeout |
Command timeout.
| |
mConnectionCreated |
If true, the connection was created from this object
| |
mConnectionString |
Connection string for specific provider.
| |
mConnectionStringName |
Connection string name
| |
mLastError |
Last connection error
| |
mLocalTransaction |
SqlTransaction object.
| |
mNativeConnection |
Native connection object. It depends on provider type.
| |
mNestedConnections |
Nested connections indexed by the connection string [connectionString -> IDbConnection]
| |
mNestedConnectionsList |
List of nested connections
| |
mNestedOpenConnections |
List of nested connections that were automatically opened
| |
mNestedOpenTransactions |
List of nested connections that were automatically opened with transaction
| |
mOriginalThreadID |
Original thread ID of the connection.
| |
mUseScopeConnection |
If true, the connection uses the scope connection
|
Name | Description | |
---|---|---|
AdvancedSettings |
Advanced settings.
| |
CommandTimeout |
Command timeout.
| |
ConnectionCreated |
If true, some connection was used
| |
ConnectionGUID |
Connection GUID
| |
ConnectionString |
Connection string for specific provider.
| |
ConnectionStringName |
Connection string name
| |
DisableConnectionDebug |
If true, the debug is disabled on this connection
| |
DisableQueryDebug |
If true, the debug of queries is disabled on this connection
| |
KeepOpen |
If true, the connection stays open even if close is requested.
| |
LocalAdvancedSettings |
Local advanced settings.
| |
LocalKeepOpen |
If true, the connection stays open even if close is requested.
| |
LocalTransaction |
Transaction object of local instance.
| |
NativeConnection |
Native connection object. It depends on provider type.
| |
NativeDBConnection |
Native connection object. It depends on provider type.
| |
Transaction |
Transaction object.
| |
UseScopeConnection |
If true, the connection uses the scope connection
|
Name | Description | |
---|---|---|
AddParameters |
Adds the given parameters to the SQL command
| |
BeginTransaction |
Begins a new transaction.
| |
BeginTransaction(IsolationLevel) |
Begins a new transaction.
| |
BulkInsert |
Performs a bulk insert of the data into a target database table
| |
Close |
Closes connection to the database.
| |
CommitTransaction |
Commits current transaction.
| |
CreateCommand |
Creates a new SQL command
| |
CreateDataAdapter |
Creates a data adapter
| |
CreateNativeConnection |
Creates a new native connection
| |
CreateParameter(DataParameter) |
Creates a SQL parameter from the given data parameter
| |
CreateParameter(String, Object) |
Creates a new command parameter
| |
Dispose |
Disposes the connection object.
| |
ExecuteNonQuery |
Returns result of the query.
| |
ExecuteQuery |
Returns result of the query.
| |
ExecuteReader |
Returns result of the query as a Data reader. Keeps the connection open.
| |
ExecuteScalar |
Returns a single value result of the query.
| |
GetExecutingConnection |
Gets the connection that executes the given query
| |
GetNestedConnection |
Gets the nested connection with the given connection string
| |
GetXmlSchema |
Returns XML schema for specified table.
| |
HandleDbError |
Handles the database error. Returns false, if the error was not handled
| |
HandleError |
Handles the error. Returns false, if the error was not handled
| |
CheckThreadSafety |
Checks the thread safety of current operation.
| |
IsOpen |
Returns true if connection to the database is open.
| |
IsTransaction |
Indicates if transaction is running.
| |
LoadDefaultConnectionString |
Loads the default connection string
| |
LogConnectionOperation |
Logs the connection operation to the query log.
| |
NativeConnectionExists |
Returns true if the native connection exists.
| |
NativeDBConnectionExists |
Returns true if the native connection exists.
| |
Open |
Opens connection to the database.
| |
PrepareCommand |
Prepares the SQL command for the query.
| |
RollbackTransaction |
Rollbacks current transaction.
| |
SetParameterType |
Sets the parameter type to a destination type
| |
ValidateTransaction |
Validates the transaction
|