| CMSConnectionScope Class |
Namespace: CMS.DataEngine
public class CMSConnectionScope : Trackable<CMSConnectionScope>, INotCopyThreadItem
The CMSConnectionScope type exposes the following members.
| Name | Description | |
|---|---|---|
| CMSConnectionScope(Boolean) |
Empty constructor. Creates a new connection and ensures that all database connections during the live of this object will use that connection.
| |
| CMSConnectionScope(IDataConnection) |
Constructor. Ensures that all database connections during the live of this object will use the given connection.
| |
| CMSConnectionScope(String, Boolean) |
Constructor. Ensures that all database connections during the live of this object will use the given connection.
|
| Name | Description | |
|---|---|---|
| CommandTimeout |
Command timeout which will be set on the connection within the current connection scope.
| |
| Connection |
Connection of the current scope.
| |
| ConnectionString |
Connection string name that the thread should use to access the database
| |
| DisableConnectionDebug |
If true, the debug is disabled on this connection
| |
| DisableDebug |
If true, the debug of queries is disabled on this connection
| |
| DisableQueryDebug |
If true, the debug of queries is disabled on this connection
|
| Name | Description | |
|---|---|---|
| CallOnDispose |
Adds the given action to the list of actions called when the handler object is disposed
(Inherited from DisposableObject.) | |
| Close |
Closes the connection.
| |
| Dispose |
Disposes the object.
(Overrides DisposableObjectDispose.) | |
| Lock | Obsolete.
Locks the event on the given lock object. The context stays locked until the handler is disposed.
(Inherited from DisposableObject.) | |
| Open |
Opens the connection.
| |
| ResetConnection |
Resets the connection to recover from error.
| |
| Using |
Adds the given object to the list of the allocated objects to dispose
(Inherited from DisposableObject.) |