Table of Contents

Class ODataQueryBuilder

Namespace
Utils.OData
Assembly
Utils.OData.dll

Builds OData-compliant query URLs from IQuery definitions.

public class ODataQueryBuilder
Inheritance
ODataQueryBuilder
Inherited Members
Extension Methods

Constructors

ODataQueryBuilder(string, IQuery, int)

Initializes a new instance of the ODataQueryBuilder class.

public ODataQueryBuilder(string UrlPrefix, IQuery query, int skip = 0)

Parameters

UrlPrefix string

The base URL of the OData endpoint.

query IQuery

Query definition used to build the request URL.

skip int

Number of items to skip in addition to Skip.

Exceptions

ArgumentNullException

Thrown when UrlPrefix or query is null.

ArgumentOutOfRangeException

Thrown when skip is negative, when Skip is negative, or when Top is zero or negative.

OverflowException

Thrown when the combined skip value overflows int.

Properties

Url

Gets the fully qualified URL generated from the provided query.

public string Url { get; }

Property Value

string