EF Core – Linq Syntax
Limit the number of records returned is done with the Take() method.
Here is an example
1 | public IResult<List<WikiPageEntity>> GetAll() |
take(2)
In this case, .take(2) is limiting the resultset to 2 records.
Limit the number of records returned is done with the Take() method.
Here is an example
1 | public IResult<List<WikiPageEntity>> GetAll() |
In this case, .take(2) is limiting the resultset to 2 records.