Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- queryable
Type: System.Linq.IQueryable
The original queryable instance from the response message.
- queryOptions
Type: System.Web.Http.OData.Query.ODataQueryOptions
The ODataQueryOptions instance constructed based on the incoming request.
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.