Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EnableQueryAttribute::ApplyQuery Method

 

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

NameDescription
System_CAPS_pubmethodApplyQuery(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.

System_CAPS_pubmethodApplyQuery(Object^, ODataQueryOptions^)

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

Return to top

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^
Return to top

EnableQueryAttribute::ApplyQuery Method (Object^, ODataQueryOptions^)

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

public:
virtual Object^ ApplyQuery(
	Object^ entity,
	ODataQueryOptions^ queryOptions
)

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.

Return to top
Show: