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
Afficher le fichier Open project: dax70/MvcApi

Méthodes publiques

Méthode 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

Méthode Description
IsIQueryable ( Type type ) : bool

Method Details

GetFilters() public méthode

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.
Résultat IEnumerable

QueryFilterProvider() public méthode

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