/// <summary>Return the number of elements in the range, by reading them</summary>
 /// <remarks>This method has to read all the keys and values, which may exceed the lifetime of a transaction. Please consider using <see cref="Fdb.System.EstimateCountAsync"/> when reading potentially large ranges.</remarks>
 public Task <int> CountAsync()
 {
     return(FdbAsyncEnumerable.CountAsync(this, this.Transaction.Cancellation));
 }
Beispiel #2
0
 /// <summary>Return the number of elements in the range, by reading them</summary>
 /// <remarks>This method has to read all the keys and values, which may exceed the lifetime of a transaction. Please consider using <see cref="Fdb.System.EstimateCountAsync"/> when reading potentially large ranges.</remarks>
 public Task <int> CountAsync()
 {
     // ReSharper disable once InvokeAsExtensionMethod
     return(FdbAsyncEnumerable.CountAsync(this, this.Transaction.Cancellation));
 }