Closed fw2568 closed 3 years ago
I agree passing in ODataQuerySettings
is preferable to HandleNullPropagationOption
.
FYI we handle paging through $top
and $skip
arguments in the URL (you've probably seen the tests).
If you do submit the PR you'll also want to update the tests to replace HandleNullPropagationOption
with the ODataQuerySettings
parameter.
Thanks.
Hello Blaise,
I have noticed that the
GetAsync
andGet
method contains ahandleNullPropagation
argument, that is later used to create theODataQuerySettings
in theLinqExtensions.ToFilterExpression
method.However, to configure other options like the PageSize, I think it is better to allow the ODataQuerySettings to be passed directly in both Get methods.
Something similar was also requested in issue #43 .
I have added a working inplementation here, if you agree I can send you a PR.
Branch: https://github.com/fw2568/AutoMapper.Extensions.OData/tree/querysettings
Compare with current master: https://github.com/AutoMapper/AutoMapper.Extensions.OData/compare/master...fw2568:querysettings
Best Regards, Frank