Skip to content

Predicates are not being applied using ToListAsync() #27

@jakkaj

Description

@jakkaj

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions