Class DynamicObjectOperation
DataOperation class that performs data operation in DynamicObject type data sources.
Inherited Members
Namespace: Syncfusion.Blazor
Assembly: Syncfusion.Blazor.dll
Syntax
public static class DynamicObjectOperation
Methods
PerformDataOperations(IEnumerable, DataManagerRequest)
Executes the query against the given data source and returns the resultant records.
Declaration
public static IEnumerable PerformDataOperations(IEnumerable DataSource, DataManagerRequest queries)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | DataSource | Input data source. |
| DataManagerRequest | queries | Query to be executed against data source. |
Returns
| Type | Description |
|---|---|
| IEnumerable | IEnumerable - resultant records. |
PerformFiltering(IEnumerable, List<WhereFilter>, string, IDictionary<string, Type>)
Apply the given filter criteria against the data source and returns the filtered records.
Declaration
public static IQueryable PerformFiltering(IEnumerable dataSource, List<WhereFilter> whereFilter, string condition, IDictionary<string, Type> columnTypes = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | dataSource | Input data source. |
| List<WhereFilter> | whereFilter | List of filter criteria. |
| string | condition | Condition to merge two filter criteria. |
| IDictionary<string, Type> | columnTypes | Type collection of each property in data source. |
Returns
| Type |
|---|
| IQueryable |
PerformSearching(IEnumerable, List<SearchFilter>, IDictionary<string, Type>)
Apply the given search criteria against the data source and returns the filtered records.
Declaration
public static IQueryable PerformSearching(IEnumerable dataSource, List<SearchFilter> searchFilter, IDictionary<string, Type> columnTypes = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | dataSource | Data source to be filtered. |
| List<SearchFilter> | searchFilter | List of search criteria. |
| IDictionary<string, Type> | columnTypes | Type collection of each property in data source. |
Returns
| Type | Description |
|---|---|
| IQueryable | IEnumerable - searched records. |
PerformSorting(IQueryable, List<Sort>)
Sorts the given data source.
Declaration
public static IQueryable PerformSorting(IQueryable dataSource, List<Sort> sortedColumns)
Parameters
| Type | Name | Description |
|---|---|---|
| IQueryable | dataSource | Input data source to be sorted. |
| List<Sort> | sortedColumns | List of sort criteria. |
Returns
| Type | Description |
|---|---|
| IQueryable | IQuerable. |
PredicateBuilder(IEnumerable, List<WhereFilter>, string, ParameterExpression, IDictionary<string, Type>)
Generates predicate from the filter criteria.
Declaration
public static Expression PredicateBuilder(IEnumerable dataSource, List<WhereFilter> whereFilter, string condition, ParameterExpression paramExpression, IDictionary<string, Type> columnTypes = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | dataSource | Data source to be filtered. |
| List<WhereFilter> | whereFilter | List of filter criteria. |
| string | condition | Condition to merge two filter criteria. |
| ParameterExpression | paramExpression | Parameter expression. |
| IDictionary<string, Type> | columnTypes | Type collection of each property in data source. |
Returns
| Type | Description |
|---|---|
| Expression | Expression. |