Class EnumerableOperation
Inherited Members
Namespace: Syncfusion.Blazor.Data
Assembly: Syncfusion.Blazor.dll
Syntax
public static class EnumerableOperation
Methods
Execute(IEnumerable, DataManagerRequest)
Executes the query against the given data source and returns the resultant records.
Declaration
public static IEnumerable Execute(IEnumerable dataSource, DataManagerRequest manager)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | dataSource | Input data source against which the query to be executed. |
| DataManagerRequest | manager | Query to be executed. |
Returns
| Type | Description |
|---|---|
| IEnumerable | IEnumerable - resultant records. |
PerformFiltering(IEnumerable, List<WhereFilter>, string)
Apply the given filter criteria against the data source and returns the filtered records.
Declaration
public static IEnumerable PerformFiltering(IEnumerable dataSource, List<WhereFilter> whereFilter, string condition)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | dataSource | Data source to be filtered. |
| List<WhereFilter> | whereFilter | List of filter criteria. |
| string | condition | Filter merge condition. Value can be either AND or OR. |
Returns
| Type | Description |
|---|---|
| IEnumerable | IEnumerable - filtered records. |
PerformGrouping(IEnumerable, List<string>)
Groups data source by the given list of column names.
Declaration
public static IEnumerable<GroupResult> PerformGrouping(IEnumerable dataSource, List<string> grouped)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | dataSource | Input data source to be grouped. |
| List<string> | grouped | List of column names by which rows will be grouped. |
Returns
| Type | Description |
|---|---|
| IEnumerable<GroupResult> | IEnumerable. |
PerformSearching(IEnumerable, List<SearchFilter>)
Apply the given search criteria against the data source and returns the filtered records.
Declaration
public static IEnumerable PerformSearching(IEnumerable dataSource, List<SearchFilter> searchFilter)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | dataSource | Data source to be filtered. |
| List<SearchFilter> | searchFilter | List of search criteria. |
Returns
| Type | Description |
|---|---|
| IEnumerable | IEnumerable - searched records. |
PerformSkip(IEnumerable, int)
Skip the given number of records from data source and returns the resultant records.
Declaration
public static IEnumerable PerformSkip(IEnumerable dataSource, int skip)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | dataSource | Input data source. |
| int | skip | Number of records to be skipped. |
Returns
| Type | Description |
|---|---|
| IEnumerable | IEnumerable. |
PerformSorting(IEnumerable, List<SortedColumn>, Type)
Sorts the data source using the given sort descriptor and returns the sorted records.
Declaration
public static IEnumerable PerformSorting(IEnumerable dataSource, List<SortedColumn> sortedColumns, Type sourceType = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | dataSource | Data source to be sorted. |
| List<SortedColumn> | sortedColumns | List of sort criteria. |
| Type | sourceType | Specifies the source type. |
Returns
| Type | Description |
|---|---|
| IEnumerable | IEnumerable - sorted records. |
PerformSorting(IEnumerable, List<Sort>)
Sorts the data source using the given sort descriptor and returns the sorted records.
Declaration
public static IEnumerable PerformSorting(IEnumerable dataSource, List<Sort> sortedColumns)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | dataSource | Data source to be sorted. |
| List<Sort> | sortedColumns | List of sort criteria. |
Returns
| Type | Description |
|---|---|
| IEnumerable | IEnumerable - sorted records. |
PerformTake(IEnumerable, int)
Take the given number of records from data source.
Declaration
public static IEnumerable PerformTake(IEnumerable dataSource, int take)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | dataSource | Input data source. |
| int | take | Number of records to be taken. |
Returns
| Type | Description |
|---|---|
| IEnumerable | IEnumerable. |
PredicateBuilder(IEnumerable, List<WhereFilter>, string, ParameterExpression, Type)
Generates predicate with the given filter criteria.
Declaration
public static Expression PredicateBuilder(IEnumerable dataSource, List<WhereFilter> whereFilter, string condition, ParameterExpression paramExpression, Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | dataSource | Input data source. |
| List<WhereFilter> | whereFilter | List of filter criteria. |
| string | condition | Value can be either AND or OR. |
| ParameterExpression | paramExpression | Parameter expression. |
| Type | type | Specifies the source type. |
Returns
| Type | Description |
|---|---|
| Expression | Expression. |