ConnectionContextEnsureRequestScope Method |
Note: This API is now obsolete.
Ensures the connection scope for current request.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntax [ObsoleteAttribute("Use EnsureThreadScope instead.")]
public static CMSConnectionScope EnsureRequestScope(
string connectionString,
bool openConnection,
bool keepOpen
)
Parameters
- connectionString
- Type: SystemString
Connection string - openConnection
- Type: SystemBoolean
If true, the connection is opened right away - keepOpen
- Type: SystemBoolean
If true, the connection is kept open
Return Value
Type:
CMSConnectionScopeSee Also