Class ODataQueryBuilder
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
UrlPrefixstringThe base URL of the OData endpoint.
queryIQueryQuery definition used to build the request URL.
skipintNumber of items to skip in addition to Skip.
Exceptions
- ArgumentNullException
Thrown when
UrlPrefixorqueryis null.- ArgumentOutOfRangeException
Thrown when
skipis 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; }