GeneralConnection Class |
Namespace: CMS.DataEngine
[SerializableAttribute] public class GeneralConnection : ISerializable, IDataConnection, IDisposable
The GeneralConnection type exposes the following members.
Name | Description | |
---|---|---|
GeneralConnection(String) |
Constructor.
| |
GeneralConnection(SerializationInfo, StreamingContext) |
Constructor for deserialization.
|
Name | Description | |
---|---|---|
CommandTimeout |
Command timeout.
| |
ConnectionString |
Connection string for specific provider.
| |
DataConnection |
Data connection for specific provider.
| |
DisableConnectionDebug |
If true, the debug is disabled on this connection
| |
DisableQueryDebug |
If true, the debug of the executed queries is disabled on this connection
| |
KeepOpen |
If true, the connection stays open even if close is requested.
| |
UseScopeConnection |
If true, the connection uses the scope connection
|
Name | Description | |
---|---|---|
BulkInsert |
Performs a bulk insert of the data into a target database table
| |
Close |
Closes the connection.
| |
Dispose |
Disposes the connection
| |
ExecuteNonQuery |
Executes the query and returns the number of rows affected.
| |
ExecuteNonQueryAsync | An asynchronous version of ExecuteNonQuery(QueryParameters) 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(QueryParameters) |
Executes query and returns result as a DataSet.
| |
ExecuteQuery(QueryParameters, Int32) |
Executes query and returns result as a DataSet. Returns the total number of result items.
| |
ExecuteReader |
Executes the query and returns result of the query as a DbDataReader.
| |
ExecuteReaderAsync | An asynchronous version of ExecuteReader(QueryParameters, 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. | |
ExecuteReaderCore |
Executes the query and returns result of the query as a DbDataReader.
| |
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.
| |
ExecuteScalarAsync | An asynchronous version of ExecuteScalar(QueryParameters), 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
| |
GetObjectData |
Gets object data.
| |
IsOpen |
Returns true if the connection is open.
| |
LogQueryEnd |
Logs the end of the query processing.
| |
LogQueryStart |
Logs query start. Logs the query to the file and to current request log for debugging.
| |
Open |
Opens the connection.
| |
RunQuery |
Runs the query against SQL DB.
|