Class FilterableDataSet<T>
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 FilterableDataSet<T> : IEnumerable<T>, IEnumerable where T : IHasAutoDataSet, new()
Type Parameters
T
- Inheritance
-
objectFilterableDataSet<T>
- Implements
-
IEnumerable<T>
- Derived
Constructors
FilterableDataSet(BpApplication, string?, string[]?)
Creates a new instance of FilterableDataSet<T>.
public FilterableDataSet(BpApplication bpApp, string? filterStr = null, string[]? includes = null)
Parameters
bpAppBpApplicationfilterStrstringincludesstring[]
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 virtual FilterableDataSet<T> Filter(Expression<Func<T, bool>> predicate)
Parameters
predicateExpression<Func<T, bool>>
Returns
GetEnumerator()
Gets the enumerator for the dataset.
public virtual IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>