Example #1
0
 public IAppQuery <TModel> FilterXor <TType>(string property, TType value)
 {
     Filtering = new FilteringOptions(String.Format("{0} != {1}", property, value));
     return(this);
 }
Example #2
0
 public static IQueryable <TModel> Filter <TModel>(this IQueryable <TModel> source, FilteringOptions filter)
 {
     return(filter != null?filter.Filter(source) : source);
 }
Example #3
0
 public IAppQuery <TModel> SetFilterOptions <TType>(string property, TType value)
 {
     Filtering = new FilteringOptions(String.Format("{0} == \"{1}\"", property, value));
     return(this);
 }