Class QueryableExtension
Class QueryableExtension.
Inheritance
Namespace: Radzen
Assembly: Radzen.Blazor.dll
Syntax
public static class QueryableExtension : object
Methods
AsODataEnumerable<T>(IEnumerable<T>)
Ases the o data enumerable.
Declaration
public static ODataEnumerable<T> AsODataEnumerable<T>(this IEnumerable<T> source)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | source | The source. |
Returns
Type | Description |
---|---|
ODataEnumerable<T> | ODataEnumerable<T>. |
Type Parameters
Name | Description |
---|---|
T |
IsEnumerable(Type)
Gets if type is IEnumerable.
Declaration
public static bool IsEnumerable(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type |
Returns
Type | Description |
---|---|
System.Boolean |
SelectManyRecursive<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
Selects the many recursive.
Declaration
public static IEnumerable<T> SelectManyRecursive<T>(this IEnumerable<T> source, Func<T, IEnumerable<T>> selector)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | source | The source. |
Func<T, IEnumerable<T>> | selector | The selector. |
Returns
Type | Description |
---|---|
IEnumerable<T> | IEnumerable<T>. |
Type Parameters
Name | Description |
---|---|
T |
ToFilterString<T>(IEnumerable<RadzenDataGridColumn<T>>)
Converts to filterstring.
Declaration
public static string ToFilterString<T>(this IEnumerable<RadzenDataGridColumn<T>> columns)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<RadzenDataGridColumn<T>> | columns | The columns. |
Returns
Type | Description |
---|---|
System.String | System.String. |
Type Parameters
Name | Description |
---|---|
T |
ToFilterString<T>(RadzenDataFilter<T>)
Converts a RadzenDataFilter to a Linq-compatibly filter string
Declaration
public static string ToFilterString<T>(this RadzenDataFilter<T> dataFilter)
Parameters
Type | Name | Description |
---|---|---|
RadzenDataFilter<T> | dataFilter | The RadzenDataFilter component |
Returns
Type | Description |
---|---|
System.String | A Linq-compatible filter string |
Type Parameters
Name | Description |
---|---|
T | The type that is being filtered |
ToList(IQueryable)
Converts to list.
Declaration
public static IList ToList(IQueryable query)
Parameters
Type | Name | Description |
---|---|---|
IQueryable | query | The query. |
Returns
Type | Description |
---|---|
IList | IList. |
ToODataFilterString<T>(IEnumerable<RadzenDataGridColumn<T>>)
Converts to odatafilterstring.
Declaration
public static string ToODataFilterString<T>(this IEnumerable<RadzenDataGridColumn<T>> columns)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<RadzenDataGridColumn<T>> | columns | The columns. |
Returns
Type | Description |
---|---|
System.String | System.String. |
Type Parameters
Name | Description |
---|---|
T |
ToODataFilterString<T>(RadzenDataFilter<T>)
Converts to OData filter expression.
Declaration
public static string ToODataFilterString<T>(this RadzenDataFilter<T> dataFilter)
Parameters
Type | Name | Description |
---|---|---|
RadzenDataFilter<T> | dataFilter | The DataFilter. |
Returns
Type | Description |
---|---|
System.String | System.String. |
Type Parameters
Name | Description |
---|---|
T |
Where(IQueryable, String, String, StringFilterOperator, FilterCaseSensitivity)
Wheres the specified filters.
Declaration
public static IQueryable Where(this IQueryable source, string property, string value, StringFilterOperator op, FilterCaseSensitivity cs)
Parameters
Type | Name | Description |
---|---|---|
IQueryable | source | The source. |
System.String | property | The property. |
System.String | value | The value. |
StringFilterOperator | op | The StringFilterOperator. |
FilterCaseSensitivity | cs | The FilterCaseSensitivity. |
Returns
Type | Description |
---|---|
IQueryable | IQueryable<T>. |
Where<T>(IQueryable<T>, IEnumerable<RadzenDataGridColumn<T>>)
Wheres the specified columns.
Declaration
public static IQueryable<T> Where<T>(this IQueryable<T> source, IEnumerable<RadzenDataGridColumn<T>> columns)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | The source. |
IEnumerable<RadzenDataGridColumn<T>> | columns | The columns. |
Returns
Type | Description |
---|---|
IQueryable<T> | IQueryable<T>. |
Type Parameters
Name | Description |
---|---|
T |
Where<T>(IQueryable<T>, RadzenDataFilter<T>)
Wheres the specified filters.
Declaration
public static IQueryable<T> Where<T>(this IQueryable<T> source, RadzenDataFilter<T> dataFilter)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<T> | source | The source. |
RadzenDataFilter<T> | dataFilter | The DataFilter. |
Returns
Type | Description |
---|---|
IQueryable<T> | IQueryable<T>. |
Type Parameters
Name | Description |
---|---|
T |