Azure Tables client library for .NET , Pageable<T> class does not implement Count() #43375
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Tables
Type of issue
Typo
Description
Pageable queryResultsFilter = tableClient.Query(filter: $"PartitionKey eq '{partitionKey}'");
// Iterate the to access all queried entities.
foreach (TableEntity qEntity in queryResultsFilter)
{
Console.WriteLine($"{qEntity.GetString("Product")}: {qEntity.GetDouble("Price")}");
}
Console.WriteLine($"The query returned {queryResultsFilter.Count()} entities.");
The code above has an issue, the object queryResultsFilter which is of type Pageable does not and cannot have Count() as a method, since Pageable does not have this method and the IEnumerable interface that it inherits from does not have this method either
Page URL
https://learn.microsoft.com/en-us/dotnet/api/overview/azure/data.tables-readme?view=azure-dotnet#query-table-entities
Content source URL
https://github.com/Azure/azure-docs-sdk-dotnet/blob/master/api/overview/azure/latest/data.tables-readme.md
Document Version Independent Id
3fb63a45-2bc7-408e-7365-cb7f9fefc8c7
Article author
@azure-sdk
Metadata
The text was updated successfully, but these errors were encountered: