Platform Core .NET Assemblies API
ExecuteReader(String,QueryParameterCollection,CommandBehavior,CancellationToken) Method
See Also  Send Feedback
Terrasoft.DB.PostgreSql Namespace > PostgreSqlExecutor Class > ExecuteReader Method : ExecuteReader(String,QueryParameterCollection,CommandBehavior,CancellationToken) Method
sqlText
SQL command text.
queryParameters
Query parameters that will be converted into System.Data.Common.DbParameterCollection.
behavior
Provides a description of the results of the query and its effect on the database.
cancellationToken
The token to monitor for cancellation requests.

Glossary Item Box

Sends SQL command text and its parameters to the connection, and builds a DataReader using one of the CommandBehavior values. Command execution can be cancelled with the token.

Syntax

 
C#
 
 

Parameters

sqlText
SQL command text.
queryParameters
Query parameters that will be converted into System.Data.Common.DbParameterCollection.
behavior
Provides a description of the results of the query and its effect on the database.
cancellationToken
The token to monitor for cancellation requests.

Return Value

Instance implementing System.Data.IDataReader for the resulting set of records.

Exceptions

ExceptionDescription
PostgreSqlExecutorException Executor was created in another thread.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.