Esempio n. 1
0
 public SearchFieldMutator(Predicate <TSearch> condition, QueryMutator <TItem, TSearch> mutator)
 {
     Condition = condition;
     Mutator   = mutator;
 }
Esempio n. 2
0
 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));
 }
Esempio n. 4
0
 /// <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));
 }
Esempio n. 5
0
 protected void AddSearchFieldMutator(Predicate <TSearchModel> condition, QueryMutator <TEntity, TSearchModel> mutator)
 {
     SearchFieldMutators.Add(new SearchFieldMutator <TEntity, TSearchModel>(condition, mutator));
 }