Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class EnumerableOperation

    Show / Hide Table of Contents

    Class EnumerableOperation

    Inheritance
    System.Object
    EnumerableOperation
    Namespace: Syncfusion.Blazor.Data
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public static class EnumerableOperation : Object

    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
    System.Collections.IEnumerable dataSource

    Input data source against which the query to be executed.

    DataManagerRequest manager

    Query to be executed.

    Returns
    Type Description
    System.Collections.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
    System.Collections.IEnumerable dataSource

    Data source to be filtered.

    System.Collections.Generic.List<WhereFilter> whereFilter

    List of filter criteria.

    System.String condition

    Filter merge condition. Value can be either AND or OR.

    Returns
    Type Description
    System.Collections.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
    System.Collections.IEnumerable dataSource

    Input data source to be grouped.

    System.Collections.Generic.List<System.String> grouped

    List of column names by which rows will be grouped.

    Returns
    Type Description
    System.Collections.Generic.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
    System.Collections.IEnumerable dataSource

    Data source to be filtered.

    System.Collections.Generic.List<SearchFilter> searchFilter

    List of search criteria.

    Returns
    Type Description
    System.Collections.IEnumerable

    IEnumerable - searched records.

    PerformSkip(IEnumerable, Int32)

    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
    System.Collections.IEnumerable dataSource

    Input data source.

    System.Int32 skip

    Number of records to be skipped.

    Returns
    Type Description
    System.Collections.IEnumerable

    IEnumerable.

    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
    System.Collections.IEnumerable dataSource

    Data source to be sorted.

    System.Collections.Generic.List<Sort> sortedColumns

    List of sort criteria.

    Returns
    Type Description
    System.Collections.IEnumerable

    IEnumerable - sorted records.

    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
    System.Collections.IEnumerable dataSource

    Data source to be sorted.

    System.Collections.Generic.List<SortedColumn> sortedColumns

    List of sort criteria.

    System.Type sourceType

    Specifies the source type.

    Returns
    Type Description
    System.Collections.IEnumerable

    IEnumerable - sorted records.

    PerformTake(IEnumerable, Int32)

    Take the given number of records from data source.

    Declaration
    public static IEnumerable PerformTake(IEnumerable dataSource, int take)
    Parameters
    Type Name Description
    System.Collections.IEnumerable dataSource

    Input data source.

    System.Int32 take

    Number of records to be taken.

    Returns
    Type Description
    System.Collections.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
    System.Collections.IEnumerable dataSource

    Input data source.

    System.Collections.Generic.List<WhereFilter> whereFilter

    List of filter criteria.

    System.String condition

    Value can be either AND or OR.

    System.Linq.Expressions.ParameterExpression paramExpression

    Parameter expression.

    System.Type type

    Specifies the source type.

    Returns
    Type Description
    System.Linq.Expressions.Expression

    Expression.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved