Click or drag to resize
DataQueryBaseTQueryGetReader Method
Executes the query using DB data reader. The SupportsReader flag indicates whether this operation is supported.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
protected virtual IDataReader GetReader(
	CommandBehavior commandBehavior,
	bool newConnection
)

Parameters

commandBehavior
Type: System.DataCommandBehavior
Command behavior for the reader.
newConnection
Type: SystemBoolean
If true, the reader will be executed using its own dedicated connection.

Return Value

Type: IDataReader
Returns the data reader resulting from query execution, or null.
Exceptions
ExceptionCondition
NotSupportedExceptionThrown when the query does not support reader.
Remarks
The method returns null if ReturnsNoResults indicates the query won't result in any results.
See Also