Open cphillips83 opened 2 years ago
EF works out of the box as it operates on IQueryable, so you do not have to register anything. Still weird that this code is in there. @michaelstaib do you remember if there is a reason for it?
I see that QueryableOffsetPagingProvider
is still throwing a NotImplementedException
while I could make offset-paging work by inheriting from that provider and implement the CanHandle
like this:
public sealed class MyOffsetProvider : QueryableOffsetPagingProvider
{
public override bool CanHandle(IExtendedType source)
=> source.Type.IsAssignableTo(typeof(IExecutable));
}
is there a reason for this NotImplementedException
?
If not, and above source type check is OK, I can transform it into a PR 😎
ping 😇
Is there an existing issue for this?
Describe the bug
The documentation for 12.9.0 shows MongoDb has several
AddMongoDbXYZ
methods to register things like filtering, sorting, pagination, etc but I'm not able to find the equivalent for Entity Framework. When trying to use OffsetPagingProvider you get aNotImplemenetException
which can be found here inCanHandle
while the MongoDb version appears to have a proper implementation.Steps to reproduce
Relevant log output
Additional Context?
The documentation doesn't appear to be fully complete like MongoDb, how can we achieve the old paging, fitlering, sorting and projection with EFC in v11?
Product
Hot Chocolate
Version
12.9.0