Example #1
0
 public static GreaterLessPredicate LessThanOrEqual(this PredicateProperty predicateProperty, object value)
 {
     if (predicateProperty == null)
     {
         throw new ArgumentNullException(nameof(predicateProperty));
     }
     return(new GreaterLessPredicate(predicateProperty.Property, value, true, true));
 }
Example #2
0
 public static InPredicate In(this PredicateProperty predicateProperty, params object[] values)
 {
     if (predicateProperty == null)
     {
         throw new ArgumentNullException(nameof(predicateProperty));
     }
     return(new InPredicate(predicateProperty.Property, values));
 }
Example #3
0
 public static CaseInsensitiveLikePredicate ILike(this PredicateProperty predicateProperty, string expression)
 {
     if (predicateProperty == null)
     {
         throw new ArgumentNullException(nameof(predicateProperty));
     }
     return(new CaseInsensitiveLikePredicate(predicateProperty.Property, expression));
 }
Example #4
0
 public static EqualPredicate Equal(this PredicateProperty predicateProperty, object value)
 {
     if (predicateProperty == null)
     {
         throw new ArgumentNullException(nameof(predicateProperty));
     }
     return(new EqualPredicate(predicateProperty.Property, value));
 }
Example #5
0
 public static BetweenPredicate Between(this PredicateProperty predicateProperty, object from, object to)
 {
     if (predicateProperty == null)
     {
         throw new ArgumentNullException(nameof(predicateProperty));
     }
     return(new BetweenPredicate(predicateProperty.Property, from, to));
 }
Example #6
0
 public static RegexPredicate MatchesRegex(this PredicateProperty predicateProperty, string regex)
 {
     if (predicateProperty == null)
     {
         throw new ArgumentNullException(nameof(predicateProperty));
     }
     return(new RegexPredicate(predicateProperty.Property, regex));
 }