CMSConnectionScope Constructor (String, Boolean, Boolean) |
Constructor. Ensures that all database connections during the live of this object will use the given connection.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 9.0.0
Syntax public CMSConnectionScope(
string connectionString,
bool openConnection,
bool defaultIfNotFound = false
)
Parameters
- connectionString
- Type: SystemString
Connection string to use within all underlying database operations. If null new connection is created - openConnection
- Type: SystemBoolean
If true, opens the connection - defaultIfNotFound (Optional)
- Type: SystemBoolean
If true, the default connection string is used if the given connection string is not found
See Also