ODataExtensions Class

Class ODataExtensions.

Inheritance

Object

ODataExtensions

Namespace: Radzen

Assembly: Radzen.Blazor.dll

Syntax

public static class ODataExtensions

Methods

GetODataUriLink to this section

Gets the o data URI.

Declaration
public static Uri GetODataUri(Uri uri, string filter, int? top, int? skip, string orderby, string expand, string select, string apply, bool? count)
Parameters
Type Name Description
Uri uri The URI.
string filter The filter.
int? top The top.
int? skip The skip.
string orderby The orderby.
string expand The expand.
string select The select.
string apply The apply.
bool? count if set to true [count].
Returns
Type Description
UriUri.

GetODataUriLink to this section

Gets the o data URI.

Declaration
public static Uri GetODataUri(Uri uri, ODataQuery<T> query, LoadDataArgs args)
Parameters
Type Name Description
Uri uri The URI.
ODataQuery<T> query
LoadDataArgs args
Returns
Type Description
UriUri.

GetODataUriLink to this section

Gets the o data URI.

Declaration
public static Uri GetODataUri(Uri uri, ODataQuery<TSource, TResult> query, LoadDataArgs args)
Parameters
Type Name Description
Uri uri The URI.
ODataQuery<TSource, TResult> query
LoadDataArgs args
Returns
Type Description
UriUri.

ThenIncludeLink to this section

Expands a navigation property of the collection that the last Include or ThenInclude expanded, e.g. .Include(team => team.Members).ThenInclude(member => member.Manager), translated to Members($expand=Manager).

Declaration
public static IncludableODataQuery<T, TProperty> ThenInclude(IIncludableODataQuery<T, IEnumerable<TPreviousProperty>> source, Expressions.Expression<Func<TPreviousProperty, TProperty>> navigation)
Parameters
Type Name Description
IIncludableODataQuery<T, IEnumerable<TPreviousProperty>> source The query.
Expressions.Expression<Func<TPreviousProperty, TProperty>> navigation The navigation property of an item of the collection; a collection can be filtered, ordered and paged as in Include.
Returns
Type Description
IncludableODataQuery<T, TProperty>A new query to which ThenInclude adds the next level.

ThenIncludeLink to this section

Expands a navigation property of the collection that the last Include or ThenInclude expanded, e.g. .Include(team => team.Members).ThenInclude(member => member.Manager), translated to Members($expand=Manager).

Declaration
public static IncludableODataQuery<T, TProperty> ThenInclude(IIncludableODataQuery<T, TPreviousProperty> source, Expressions.Expression<Func<TPreviousProperty, TProperty>> navigation)
Parameters
Type Name Description
IIncludableODataQuery<T, TPreviousProperty> source The query.
Expressions.Expression<Func<TPreviousProperty, TProperty>> navigation The navigation property of an item of the collection; a collection can be filtered, ordered and paged as in Include.
Returns
Type Description
IncludableODataQuery<T, TProperty>A new query to which ThenInclude adds the next level.
In This Article
An error has occurred. This app may no longer respond until reloaded. Reload 🗙