DataConnection Class |
Namespace: CMS.DataProviderSQL
public class DataConnection : AbstractDataConnection
The DataConnection type exposes the following members.
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).) | |
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 |
Returns result of the query.
(Inherited from AbstractDataConnection.) | |
ExecuteQuery |
Returns result of the query.
(Inherited from AbstractDataConnection.) | |
ExecuteReader |
Returns result of the query as a Data reader. Keeps the connection open.
(Inherited from AbstractDataConnection.) | |
ExecuteScalar |
Returns a single value result of the query.
(Inherited from AbstractDataConnection.) | |
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.) | |
CheckThreadSafety |
Checks the thread safety of current operation.
(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.) | |
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.) |
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Name | Description | |
---|---|---|
mAdvancedSettings |
Advanced settings.
(Inherited from AbstractDataConnection.) | |
mCommandTimeout |
Command timeout.
(Inherited from AbstractDataConnection.) | |
mConnectionCreated |
If true, the connection was created from this object
(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.) | |
mLocalTransaction |
SqlTransaction object.
(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.) | |
mOriginalThreadID |
Original thread ID of the connection.
(Inherited from AbstractDataConnection.) | |
mUseScopeConnection |
If true, the connection uses the scope connection
(Inherited from AbstractDataConnection.) |
Name | Description | |
---|---|---|
AdvancedSettings |
Advanced settings.
(Inherited from AbstractDataConnection.) | |
CommandTimeout |
Command timeout.
(Inherited from AbstractDataConnection.) | |
ConnectionCreated |
If true, some connection was used
(Inherited from AbstractDataConnection.) | |
ConnectionGUID |
Connection GUID
(Inherited from AbstractDataConnection.) | |
ConnectionString |
Connection string for specific provider.
(Inherited from AbstractDataConnection.) | |
ConnectionStringName |
Connection string name
(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.) | |
LocalAdvancedSettings |
Local advanced settings.
(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.) |