Click or drag to resize
CMSConnectionContext Class
Ensures that the wrapped API calls are executed against specific database(s).
Inheritance Hierarchy
SystemObject
  CMS.DataEngineCMSConnectionContext

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 9.0.0
Syntax
C#
public class CMSConnectionContext : IDisposable

The CMSConnectionContext type exposes the following members.

Constructors
  NameDescription
Public methodCMSConnectionContext
Constructor, sets up the connection string name prefix for the life time of this object. E.g. for prefix "External" the connection string "ExternalCMSConnectionString" will be used instead of the default "CMSConnectionString". To revert to default DB, use prefix null or empty string.
Top
Properties
  NameDescription
Protected propertyOriginalPrefix
Connection string prefix from the original context
Top
Methods
  NameDescription
Public methodDispose
Disposes the object and resets the context to the previous one.
Top
See Also