You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
Question 1: How to do ODataQueryOptions imperative style handling instead of Processing query in Action filter [EnableQuery]. We would like to avoid bringing DataContext to Controller at all costs.
Question 2: How to declare controller action method and what will be the route?
myBusinessService.cs
IList<T> ApplyUserFilters(ODataQueryOptions userFilterCriteria)
{
//this includes various filters for Ownership of data based on logged in user
var myQuery = GetQuery();
//apply userFilterCriteria on top
var finalQuery = myQuery.Apply(userFilterCrtieria)
//materialise and return result;
return finalQuery.toList();
}
Question 1: How to do ODataQueryOptions imperative style handling instead of Processing query in Action filter [EnableQuery]. We would like to avoid bringing DataContext to Controller at all costs.
Question 2: How to declare controller action method and what will be the route?