AutoMapper / AutoMapper.Extensions.OData

Creates LINQ expressions from ODataQueryOptions and executes the query.
MIT License
140 stars 38 forks source link

Queryable extensions ignore the $search clause #118

Closed rdelmont closed 2 years ago

rdelmont commented 2 years ago

Using AspnetCore.OData 8.0.6, I defined a SearchBinder to support $search implementation. But this options is ignored by the Queryable extension. The only way to make it do something is to use EnableQuery which is not recommended. In fact things go wild when using both EnableQuery and Queryable extension so it's not a viable solution.

trojanmartin commented 2 years ago

Search is new query option added in last release of the OData. AutoMapper.Extensions.OData is currently ignoring it. I will try to create a PR with this feature implemented in few days.

BlaiseD commented 2 years ago

That is correct. PRs are welcome for missing features.

rdelmont commented 2 years ago

Thanks guys. Ok for the PR, unfortunately my understanding of the code is still poor. But I'll try next time.