C# Class MvcApi.OData.QueryableAttribute

Inheritance: System.Web.Mvc.ActionFilterAttribute
Afficher le fichier Open project: dax70/MvcApi

Méthodes publiques

Méthode Description
GetModel ( Type elementClrType, HttpRequestMessage request, ApiActionDescriptor actionDescriptor ) : IEdmModel

Gets the EDM model for the given type and request.

Override this method to customize the EDM model used for querying.

OnActionExecuted ( System.Web.Mvc.ActionExecutedContext filterContext ) : void
QueryableAttribute ( ) : System

Enables a controller action to support OData query parameters.

Private Methods

Méthode Description
IsSupportedReturnType ( Type objectType ) : bool
ValidateQuery ( HttpRequestMessage request, System.Web.Http.OData.Query.ODataQueryOptions queryOptions ) : void

Method Details

GetModel() public méthode

Gets the EDM model for the given type and request.
Override this method to customize the EDM model used for querying.
public GetModel ( Type elementClrType, HttpRequestMessage request, ApiActionDescriptor actionDescriptor ) : IEdmModel
elementClrType System.Type The CLR type to retrieve a model for.
request MvcApi.Http.HttpRequestMessage The request message to retrieve a model for.
actionDescriptor ApiActionDescriptor The action descriptor for the action being queried on.
Résultat IEdmModel

OnActionExecuted() public méthode

public OnActionExecuted ( System.Web.Mvc.ActionExecutedContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutedContext
Résultat void

QueryableAttribute() public méthode

Enables a controller action to support OData query parameters.
public QueryableAttribute ( ) : System
Résultat System