Click or drag to resize
GeneralConnectionExecuteReader Method (String, QueryDataParameters, QueryTypeEnum, CommandBehavior)

Note: This API is now obsolete.

Runs the query and returns result as Data reader. Keeps the connection open.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
[ObsoleteAttribute("This methods is obsolete, use method ExecuteReader(QueryParameters, CommandBehavior).")]
public virtual DbDataReader ExecuteReader(
	string queryText,
	QueryDataParameters parameters,
	QueryTypeEnum queryType,
	CommandBehavior commandBehavior = CommandBehavior.Default
)

Parameters

queryText
Type: SystemString
Query text
parameters
Type: CMS.DataEngineQueryDataParameters
Query parameters
queryType
Type: CMS.DataEngineQueryTypeEnum
Query type
commandBehavior (Optional)
Type: System.DataCommandBehavior
Command behavior

Return Value

Type: DbDataReader
See Also