Jaa


TopQueryOption Class

Definition

This defines a $top OData query option for querying.

public class TopQueryOption
type TopQueryOption = class
Public Class TopQueryOption
Inheritance
TopQueryOption

Constructors

TopQueryOption(String, ODataQueryContext, ODataQueryOptionParser)

Initialize a new instance of TopQueryOption based on the raw $top value and an EdmModel from ODataQueryContext.

Properties

Context

Gets the given ODataQueryContext.

RawValue

Gets the raw $top value.

Validator

Gets or sets the Top Query Validator.

Value

Gets the value of the $top as a parsed integer.

Methods

ApplyTo(IQueryable, ODataQuerySettings)

Apply the $top query to the given IQueryable.

ApplyTo<T>(IQueryable<T>, ODataQuerySettings)

Apply the $top query to the given IQueryable.

Validate(ODataValidationSettings)

Validate the top query based on the given validationSettings. It throws an ODataException if validation failed.

Applies to