[]
        
(Showing Draft Content)

C1.AdoNet.OData.C1ODataCommand.ExecuteNonQueryCoreAsync

ExecuteNonQueryCoreAsync Method

ExecuteNonQueryCoreAsync(ISQLStatement, CancellationToken, SourceTable)

Executes a single non-query SQL statement.

Declaration
protected override Task<int> ExecuteNonQueryCoreAsync(ISQLStatement statement, CancellationToken token, SourceTable sourceTable = null)
Parameters
Type Name Description
ISQLStatement statement

The non-query SQL statement to be executed.

CancellationToken token

The cancellation token to abort the execution of the non-query SQL statement before its completion.

SourceTable sourceTable

The table in the OData service that is to be modified (have rows inserted/updated/deleted).

Returns
Type Description
Task<int>

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

Overrides