DevExpress.DataAccess.BigQuery.BigQueryCommand.ExecuteNonQueryAsync C# (CSharp) Method

ExecuteNonQueryAsync() public method

Asynchronously executes a non-query SQL statement. The asynchronous result contains the number of rows affected.
public ExecuteNonQueryAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken A cancellation token that can be used to cancel command execution.
return Task
        public override async Task<int> ExecuteNonQueryAsync(CancellationToken cancellationToken) {
            cancellationToken.ThrowIfCancellationRequested();
            cancellationToken.Register(Cancel);
            using(DbDataReader dbDataReader = await ExecuteDbDataReaderAsync(CommandBehavior.Default, cancellationToken).ConfigureAwait(false)) {
                while(await dbDataReader.NextResultAsync(cancellationToken).ConfigureAwait(false))
                    ;
                return dbDataReader.RecordsAffected;
            }
        }