[]
        
(Showing Draft Content)

C1.AdoNet.CSV.C1CSVCommand.ExecuteNonQueryCoreAsync

ExecuteNonQueryCoreAsync Method

ExecuteNonQueryCoreAsync(ISQLStatement, CancellationToken, SourceTable)

The core method provided to execute a non-query statement.

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

The cancellation token to abort the non query execution at any moment.

SourceTable sourceTable

The sourceTable containing the data to be inserted/updated/delete from the CSV server.

Returns
Type Description
Task<int>

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

Overrides