AutoMapper / AutoMapper.Extensions.OData

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

Add support for $search #119

Closed trojanmartin closed 2 years ago

trojanmartin commented 2 years ago

Implements support for $search clause from odata query options which was discussed here #118.

Brief explanation: If user defines search binder, map his expression and use it in filter. If $search and $filter are defined at the same time, both filters must be applied.

BlaiseD commented 2 years ago

@trojanmartin can you add the new tests to both GetQueryTests files? (here and here).

You'll probably need to update the Initialize methods and possibly some of the setup code here and here.

trojanmartin commented 2 years ago

@BlaiseD I added few tests.