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