Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Add support for IQueryable.Count(Func<T, bool> predicate) #6

Open
sflanker opened this issue Jun 19, 2018 · 0 comments
Open

Add support for IQueryable.Count(Func<T, bool> predicate) #6

sflanker opened this issue Jun 19, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@sflanker
Copy link
Member

Currently .Where(predicate).Count() works but .Count(predicate) does not.

See test case:

[Fact]
public override void Count_Filtered() {
// TODO: Implement support for Count w/ predicate
var result = this.Suppliers.Where(s => s.Country == "USA").Count();
Assert.Equal(4, result);
}

@sflanker sflanker added the enhancement New feature or request label Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant