TopQueryOption.ApplyTo Method
Namespace: System.Web.Http.OData.Query
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
ApplyTo(IQueryable, ODataQuerySettings) | Apply the $top query to the given IQueryable. |
|
ApplyTo<T>(IQueryable<T>, ODataQuerySettings) | Apply the $top query to the given IQueryable. |
See Also
TopQueryOption Class
System.Web.Http.OData.Query Namespace
Return to top
TopQueryOption.ApplyTo Method (IQueryable, ODataQuerySettings)
Apply the $top query to the given IQueryable.
Syntax
public IQueryable ApplyTo(
IQueryable query,
ODataQuerySettings querySettings
)
public:
IQueryable^ ApplyTo(
IQueryable^ query,
ODataQuerySettings^ querySettings
)
member ApplyTo :
query:IQueryable *
querySettings:ODataQuerySettings -> IQueryable
Public Function ApplyTo (
query As IQueryable,
querySettings As ODataQuerySettings
) As IQueryable
Parameters
query
Type: System.Linq.IQueryableThe original IQueryable.
querySettings
Type: System.Web.Http.OData.Query.ODataQuerySettingsThe query settings to use while applying this query option.
Return Value
Type: System.Linq.IQueryable
The new IQueryable after the top query has been applied to.
Return to top
TopQueryOption.ApplyTo<T> Method (IQueryable<T>, ODataQuerySettings)
Apply the $top query to the given IQueryable.
Syntax
public IOrderedQueryable<T> ApplyTo<T>(
IQueryable<T> query,
ODataQuerySettings querySettings
)
public:
generic<typename T>
IOrderedQueryable<T>^ ApplyTo(
IQueryable<T>^ query,
ODataQuerySettings^ querySettings
)
member ApplyTo<'T> :
query:IQueryable<'T> *
querySettings:ODataQuerySettings -> IOrderedQueryable<'T>
Public Function ApplyTo(Of T) (
query As IQueryable(Of T),
querySettings As ODataQuerySettings
) As IOrderedQueryable(Of T)
Parameters
query
Type: System.Linq.IQueryable<T>The original IQueryable.
querySettings
Type: System.Web.Http.OData.Query.ODataQuerySettingsThe query settings to use while applying this query option.
Return Value
Type: System.Linq.IOrderedQueryable<T>
The new IQueryable after the top query has been applied to.
Return to top