Skip to content

Using ScanAndCount the BeforeSelect Hook is not called when Getting the Count using Pagination. #1289

@ocomsoft

Description

@ocomsoft

I am using BeforeSelect to add a filter for tenants and when use ScanAndCount the COUNT SQL does not include the where clause for the Tenant added in BeforeSelect when the results are Paginated.

Using the source attached you can see the tenant is not applied when calling ScanAndCount. Uses zerolog because that is how we found it.

example.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions