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