I'm in the process of developing an ASP.NET Core WebAPI that uses EntityFramework to access the datastore. One of the things we need to support is sorting and filtering.
I'm assuming that the HTTP query-string will be populated with the various criteria for the filtering and sorting. But I'd like to see some actual real-world examples of fairly complex filtering/sorting functions, how the filter and sort objects are constructed, and how the EF queries are built-up to obtain the data from the database.
I've done quite a bit of searching on the topic but all I can find are trivial examples which wouldn't be appropriate for a complex, enterprise-level application.
Lastly, I'm not interested in OData. This needs to be a standard REST API.