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

Note: This API is now obsolete.

Executes query and returns result as a 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 queryName,
	QueryDataParameters parameters,
	QueryMacros macros,
	CommandBehavior commandBehavior = CommandBehavior.Default
)

Parameters

queryName
Type: SystemString
Name of the query in format application.class.queryname
parameters
Type: CMS.DataEngineQueryDataParameters
Query parameters
macros
Type: CMS.DataEngineQueryMacros
Query expressions
commandBehavior (Optional)
Type: System.DataCommandBehavior
Command behavior

Return Value

Type: DbDataReader
See Also