MR.EntityFrameworkCore.KeysetPagination icon indicating copy to clipboard operation
MR.EntityFrameworkCore.KeysetPagination copied to clipboard

Nested types

Open hey-red opened this issue 3 years ago • 1 comments

Is there a way to use nested types in builder?

For example:

context.SomeModel.KeysetPaginate(b => b.Descending(entity => entity.Options.SomeOption), reference: new { Options = new { SomeOption = value } });

hey-red avatar Feb 25 '22 09:02 hey-red

Right now this isn't possible. But I think it might work as long as you make sure the nested prop is loaded in the reference, but a part of the implementation does need to change. I'll try and have a look if this is doable.

mrahhal avatar Feb 25 '22 09:02 mrahhal

I would also find this helpful.

dev-greene avatar Oct 18 '22 02:10 dev-greene

Initial support for this added in v1.1.0. Let me know if it works for your use cases. Make sure to check the new section in the README about it.

If you're using this package transitively through MR.AspNetCore.Pagination, you of course can add a dependency to this version directly to get this support.

mrahhal avatar Oct 24 '22 11:10 mrahhal