QueryableAttribute.ApplyQuery Method (IQueryable, ODataQueryOptions)

Applies the query to the given entity based on incoming query from uri and query settings.

Namespace:  System.Web.Http
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Public Overridable Function ApplyQuery ( _
    queryable As IQueryable, _
    queryOptions As ODataQueryOptions _
) As IQueryable
'Usage
Dim instance As QueryableAttribute 
Dim queryable As IQueryable 
Dim queryOptions As ODataQueryOptions 
Dim returnValue As IQueryable 

returnValue = instance.ApplyQuery(queryable, _
    queryOptions)
public virtual IQueryable ApplyQuery(
    IQueryable queryable,
    ODataQueryOptions queryOptions
)
public:
virtual IQueryable^ ApplyQuery(
    IQueryable^ queryable, 
    ODataQueryOptions^ queryOptions
)
abstract ApplyQuery : 
        queryable:IQueryable * 
        queryOptions:ODataQueryOptions -> IQueryable  
override ApplyQuery : 
        queryable:IQueryable * 
        queryOptions:ODataQueryOptions -> IQueryable
public function ApplyQuery(
    queryable : IQueryable, 
    queryOptions : ODataQueryOptions
) : IQueryable

Parameters

Return Value

Type: System.Linq.IQueryable
The new entity.

Remarks

Override this method to perform additional query composition of the query. By default, the implementation supports $top, $skip, $orderby and $filter.

See Also

Reference

QueryableAttribute Class

ApplyQuery Overload

System.Web.Http Namespace