CMSConnectionScope Constructor (String, 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: 10.0.0
Syntax public CMSConnectionScope(
string connectionString,
bool defaultIfNotFound = false
)
Parameters
- connectionString
- Type: SystemString
Connection string to use within all underlying database operations. If null new connection is created - defaultIfNotFound (Optional)
- Type: SystemBoolean
If true, the default connection string is used if the given connection string is not found
See Also