DataConnector | ComponentOne
C1.AdoNet.OData Assembly / C1.AdoNet.OData Namespace / C1ODataCommand Class / ExecutePrimitiveSqlAsync Method
The C1.DataConnector.SelectStatement to be executed on the OData server.
The cancellation token to abort the execution of the non-query statement before its completion.
A boolean that indicates if should retrieve all the rows from the referred tables in the select needs to be retrieved from the OData server.

In This Topic
    ExecutePrimitiveSqlAsync Method (C1ODataCommand)
    In This Topic
    Executes a select directly on the OData server.
    Syntax
    'Declaration
     
    Protected Overrides NotOverridable Function ExecutePrimitiveSqlAsync( _
       ByVal select As SelectStatement, _
       ByVal token As CancellationToken, _
       ByVal needFullData As Boolean _
    ) As Task(Of SourceTable)
    protected override Task<SourceTable> ExecutePrimitiveSqlAsync( 
       SelectStatement select,
       CancellationToken token,
       bool needFullData
    )

    Parameters

    select
    The C1.DataConnector.SelectStatement to be executed on the OData server.
    token
    The cancellation token to abort the execution of the non-query statement before its completion.
    needFullData
    A boolean that indicates if should retrieve all the rows from the referred tables in the select needs to be retrieved from the OData server.

    Return Value

    A table that contains the result from the execution of the query.
    See Also