Troubleshooting — EricksonLopez.Pagination
Common integration issues and Roslyn analyzer rules (PAG002–PAG008) in EricksonLopez.Pagination (2.0.0).
HmacCursorEncoder Key Length & Replay Store Errors
Section titled “HmacCursorEncoder Key Length & Replay Store Errors”secretKeytoo short:HmacCursorEncodervalidates thatsecretKeyencodes to at least 32 UTF-8 bytes.- Disposing
HmacCursorEncoder: BecauseHmacCursorEncoderimplementsIDisposable, register it as a singleton or dispose scoped instances explicitly.
Dapper Parameter Naming (BC-006) & EF Core AOT Caveat
Section titled “Dapper Parameter Naming (BC-006) & EF Core AOT Caveat”- Dapper parameter names (
BC-006): Internal parameter names omit the@prefix (__Pagination_Limit__,__Pagination_Skip__). Do not prepend@when inspecting generatedDynamicParameters. - EF Core
ToCursorPagedListAsync:EricksonLopez.Pagination.EntityFrameworkCore.csprojinheritsIsAotCompatible=true, though XML doc remarks noteToCursorPagedListAsyncusesExpression.Compile()— preferDapperKeysetBuilder<T>for strict Native AOT binaries. - Roslyn rules (
PAG002–PAG008): Address deep-offset and missing-sort-tiebreaker warnings flagged byEricksonLopez.Pagination.Analyzers.