WindowsAzure
WindowsAzure copied to clipboard
Predicates are not being applied using ToListAsync()
ToListAsync extension does not pass in the correct predicate to provide a filter for List operations.
Example is getting all the items in a particular partition.
Usage: await table.ToListAsync( => _.PartitionKey == partitionKey);
public static Task<List<T>> ToListAsync<T> Should be changed to :
return tableQueryProvider.ExecuteAsync(source.Where(predicate).Expression, cancellationToken) .Then(result => ((IEnumerable<T>)result).ToList(), cancellationToken);
*Also apologies for not doing this as a pull request :)
Thanks, it'll be available in the next version.