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