DataConnector | ComponentOne
C1.AdoNet.OData Assembly / C1.AdoNet.OData Namespace / C1ODataCommand Class / ExecuteNonQueryCoreAsync Method
The non-query SQL statement to be executed.
The cancellation token to abort the execution of the non-query SQL statement before its completion.
The table in the OData service that is to be modified (have rows inserted/updated/deleted).

In This Topic
    ExecuteNonQueryCoreAsync Method (C1ODataCommand)
    In This Topic
    Executes a single non-query SQL statement.
    Syntax
    'Declaration
     
    Protected Overrides NotOverridable Function ExecuteNonQueryCoreAsync( _
       ByVal statement As ISQLStatement, _
       ByVal token As CancellationToken, _
       Optional ByVal sourceTable As SourceTable _
    ) As Task(Of Integer)
    protected override Task<int> ExecuteNonQueryCoreAsync( 
       ISQLStatement statement,
       CancellationToken token,
       SourceTable sourceTable
    )

    Parameters

    statement
    The non-query SQL statement to be executed.
    token
    The cancellation token to abort the execution of the non-query SQL statement before its completion.
    sourceTable
    The table in the OData service that is to be modified (have rows inserted/updated/deleted).

    Return Value

    The number rows effected. Otherwise, -1 when an error happens.
    See Also