Click or drag to resize
DataQueryBaseTQueryGetReaderFromDBAsync Method
Asynchronously executes the query using DB data reader.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
protected virtual Task<IDataReader> GetReaderFromDBAsync(
	CommandBehavior commandBehavior,
	bool newConnection,
	CancellationToken cancellationToken
)

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.
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation instruction.

Return Value

Type: TaskIDataReader
Returns a task returning either the data reader resulting from query execution, or null.
See Also