Table of Contents

Class FilterableRangeDataSet<T>

Namespace
BpNexT.NET.Filter
Assembly
BpNexT.NET.dll

Represents a dataset that supports filtering via a predicate. Calling Filter does not perform LINQ filtering but instead translates the predicate into a filter string that is applied when fetching the data.

public class FilterableRangeDataSet<T> : FilterableDataSet<T>, IEnumerable<T>, IEnumerable where T : IHasAutoDataSet, new()

Type Parameters

T
Inheritance
object
FilterableRangeDataSet<T>
Implements

Constructors

FilterableRangeDataSet(BpApplication, IDataSetIndex, IDataSetIndex, string?, string[]?)

Creates a new instance of FilterableRangeDataSet<T>.

public FilterableRangeDataSet(BpApplication bpApp, IDataSetIndex indexStart, IDataSetIndex indexEnd, string? filter, string[]? includes = null)

Parameters

bpApp BpApplication
indexStart IDataSetIndex
indexEnd IDataSetIndex
filter string
includes string[]

Methods

Filter(Expression<Func<T, bool>>)

Applies a filter predicate. This method translates the predicate into the underlying filter string and returns a new instance with this filter.

public override FilterableDataSet<T> Filter(Expression<Func<T, bool>> predicate)

Parameters

predicate Expression<Func<T, bool>>

Returns

FilterableDataSet<T>

GetEnumerator()

Gets the enumerator for the dataset.

public override IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>