Class FilterableChangedDataSet<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 FilterableChangedDataSet<T> : FilterableDataSet<T>, IEnumerable<T>, IEnumerable where T : IHasAutoDataSet, IHasAendDat, new()
Type Parameters
T
- Inheritance
-
objectFilterableChangedDataSet<T>
- Implements
-
IEnumerable<T>
Constructors
FilterableChangedDataSet(BpApplication, string?, string[]?, DateTime?, Func<string, string, DateTime>?)
Creates a new instance of FilterableChangedDataSet<T>.
public FilterableChangedDataSet(BpApplication bpApp, string? filterStr, string[]? includes, DateTime? changedSince = null, Func<string, string, DateTime>? getLastSyncDate = null)
Parameters
bpAppBpApplicationfilterStrstringincludesstring[]changedSinceDateTime?getLastSyncDateFunc<string, string, DateTime>
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
predicateExpression<Func<T, bool>>
Returns
GetEnumerator()
Gets the enumerator for the dataset.
public override IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>