示例#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));
 }
示例#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));
 }
示例#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));
 }
示例#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));
 }
示例#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));
 }
示例#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));
 }