| 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 | |
|---|---|---|
| mConnectionGuid |
Connection GUID to identify the connection.
| |
| mDataConnection |
Data connection for specific provider.
|
| Name | Description | |
|---|---|---|
| AdvancedSettings |
Advanced settings.
| |
| CacheDependency |
Cache dependency for the cached items.
| |
| CacheMinutes |
Cache minutes for which the selected data should be cached (only for SELECT queries).
| |
| CommandTimeout |
Command timeout.
| |
| ConnectionGuid |
Connection GUID to identify the connection.
| |
| 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
| |
| FireErrorOnExecute |
If true, an error if fired on execution (for debug purposes).
| |
| KeepOpen |
If true, the connection stays open even if close is requested.
| |
| UserID |
ID of the current user.
| |
| 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 |
Runs the query.
| |
| 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 |
Runs the query and returns result as Data reader. Keeps the connection open.
| |
| ExecuteScalar |
Runs the query and returns result as a single value.
| |
| 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.
|