Exemplo n.º 1
0
 /// <summary>
 /// Asynchronously executes query and returns number of affected rows.
 /// </summary>
 /// <remarks> Multiple active operations are not supported. Use <see langword="await"/>
 /// to ensure that all asynchronous operations have completed.</remarks>
 /// <param name="token">The token to cancel current operation if needed.</param>
 /// <returns>Number of affected rows.</returns>
 public Task <int> ExecuteNonQueryAsync(CancellationToken token = default) =>
 driver.ExecuteNonQueryAsync(session, realCommand, token);