All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Require HttpContext in default
PaginationService
only where needed instead of throwing on ctor (#11)
- Update Swashbuckle to v6.3 to fix compatibility problem
- Add support for prebuilt keyset query definitions
- Update MR.EntityFrameworkCore.KeysetPagination package version to v1.3.0
- Properly annotate the
getReferenceAsync
delegate to allow nulls, which fixes the mismatch in analysis (#7)
This version introduces breaking changes. Make sure to read on them in the Changed section below.
- Enforce returning the first page when the reference is null in an after/before request
- Add overloads that accept the query model as an argument as opposed to being parsed from the request query (#3)
- Add
PageCount
, a commonly computed value toOffsetPaginationResult
- Remove auto parsing of ints for after/before params (#5)
- Rename
SizeQueryParameterName
toPageSizeQueryParameterName
(the default value remains"size"
)
- Update MR.EntityFrameworkCore.KeysetPagination dependency
- Update MR.EntityFrameworkCore.KeysetPagination dependency
- Move
PaginationActionDetector
to main package - Add
ConfigurePagination
for swagger and makeAddPaginationOperationFilter
obsolete - Add efficient offset pagination for in memory list of data
- Allow overriding page size on the method call level