Open jakkaj opened 11 years ago
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> ToListAsync Should be changed to :
return tableQueryProvider.ExecuteAsync(source.Where(predicate).Expression, cancellationToken) .Then(result => ((IEnumerable)result).ToList(), cancellationToken);
*Also apologies for not doing this as a pull request :)
Thanks, it'll be available in the next version.
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> ToListAsync Should be changed to :
return tableQueryProvider.ExecuteAsync(source.Where(predicate).Expression, cancellationToken) .Then(result => ((IEnumerable)result).ToList(), cancellationToken);