EnableQueryAttribute::ApplyQuery Method
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
| Name | Description | |
|---|---|---|
![]() | ApplyQuery(IQueryable^, ODataQueryOptions^) | Applies the query to the given IQueryable based on incoming query from uri and query settings. By default, the implementation supports $top, $skip, $orderby and $filter. Override this method to perform additional query composition of the query. |
![]() | ApplyQuery(Object^, ODataQueryOptions^) | Applies the query to the given entity based on incoming query from uri and query settings. |
EnableQueryAttribute::ApplyQuery Method (IQueryable^, ODataQueryOptions^)
Applies the query to the given IQueryable based on incoming query from uri and query settings. By default, the implementation supports $top, $skip, $orderby and $filter. Override this method to perform additional query composition of the query.
public: virtual IQueryable^ ApplyQuery( IQueryable^ queryable, ODataQueryOptions^ queryOptions )
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^EnableQueryAttribute::ApplyQuery Method (Object^, ODataQueryOptions^)
Applies the query to the given entity based on incoming query from uri and query settings.
Parameters
- entity
-
Type:
System::Object^
The original entity 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::Object^The new entity after the $select and $expand query has been applied to.
