public SearchFieldMutator(Predicate <TSearch> condition, QueryMutator <TItem, TSearch> mutator) { Condition = condition; Mutator = mutator; }
public GenericFilterStrategy(Predicate <TCriteria> criteria, QueryMutator <TEntity, TCriteria> mutator) { Criteria = criteria; Mutator = mutator; }
public void AddCondition(Predicate <TSearch> condition, QueryMutator <TItem, TSearch> mutator) { SearchFieldMutators.Add(new SearchFieldMutator <TItem, TSearch>(condition, mutator)); }
/// <summary> /// Adds a Search Field Mutator item /// </summary> /// <param name="condition">Condition to check</param> /// <param name="mutator">Expression to run if true</param> public void Add(Predicate <TSearch> condition, QueryMutator <TQuery> mutator) { _inner.Add(new SearchFieldMutator <TSearch, TQuery>(condition, mutator)); }
protected void AddSearchFieldMutator(Predicate <TSearchModel> condition, QueryMutator <TEntity, TSearchModel> mutator) { SearchFieldMutators.Add(new SearchFieldMutator <TEntity, TSearchModel>(condition, mutator)); }