Skip to content

Make this nuget independent from entity framework. #32

@miketof

Description

@miketof

Hi!
This nuget is great! I know that it is targetting mostly to entity framework, but small changes can make it independent from EF.
The only place where's used async iqueryable is KeysetPaginationExtensions. If you change line 152:
return context.OrderedQuery.AnyAsync(lambda); to return Task.FromResult(context.OrderedQuery.Any(lambda)); you can get rid of the entity framework reference.
This will allow using of pagination with other ORMs using IQueryable (e.x. MongoDB.Driver). I can push these changes to another branch and make PR if you allow me to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions