Bugfix: Displaying all Records (PageSize = -1) leads to Issue with EFCore on empty Lists
Thanks to @nino-s for fixing an issue in PR #4 where displaying all records using PageSize = -1
lead to an issue with EFCore for empty tables. This happened because we used the TotalCount
in Take(totalCount)
which lead to the combined usage of query.Skip(0).Take(0)
. Due to an unclear reason, EFCore cannot handle this combination of statements.