C# Class MvcApi.OData.QueryableAttribute

Inheritance: System.Web.Mvc.ActionFilterAttribute
Show file Open project: dax70/MvcApi

Public Methods

Method 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

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

Method Details

GetModel() public method

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.
return IEdmModel

OnActionExecuted() public method

public OnActionExecuted ( System.Web.Mvc.ActionExecutedContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutedContext
return void

QueryableAttribute() public method

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