C# Class MvcApi.OData.Query.QueryFilterProvider

An implementation of IFilterProvider that applies an action filter to any action with an IQueryable or IQueryable{T} return type that doesn't bind a parameter of type ODataQueryOptions.
Inheritance: IFilterProvider
Mostrar archivo Open project: dax70/MvcApi

Public Methods

Method Description
GetFilters ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ActionDescriptor actionDescriptor ) : IEnumerable

Provides filters to apply to the specified action.

QueryFilterProvider ( IActionFilter queryFilter ) : System

Initializes a new instance of the QueryFilterProvider class.

Private Methods

Method Description
IsIQueryable ( Type type ) : bool

Method Details

GetFilters() public method

Provides filters to apply to the specified action.
public GetFilters ( System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ActionDescriptor actionDescriptor ) : IEnumerable
controllerContext System.Web.Mvc.ControllerContext The current controllerContext.
actionDescriptor System.Web.Mvc.ActionDescriptor The action descriptor for the action to provide filters for.
return IEnumerable

QueryFilterProvider() public method

Initializes a new instance of the QueryFilterProvider class.
public QueryFilterProvider ( IActionFilter queryFilter ) : System
queryFilter IActionFilter The action filter that executes the query.
return System