Beispiel #1
0
 /// <summary>
 /// Instantiates.
 /// </summary>
 /// <param name="expression">the expression to be constrained</param>
 /// <param name="value">the value</param>
 /// <param name="matchMode">the <see cref="MatchMode"/></param>
 public IlikeExpression(IExpression expression, String value, MatchMode matchMode)
 {
     Expression = expression;
     Value = value;
     MatchMode = matchMode;
 }
Beispiel #2
0
 /// <summary>
 /// Instantiates.
 /// </summary>
 /// <param name="expression">the expression to be constrained</param>
 /// <param name="value">the value</param>
 /// <param name="matchMode">the <see cref="MatchMode"/></param>
 /// <param name="escapeChar">the escape char</param>
 /// <param name="ignoreCase">ignore case or not</param>
 public LikeExpression(IExpression expression, String value, MatchMode matchMode, String escapeChar, Boolean ignoreCase)
 {
     Expression = expression;
     Value = value;
     MatchMode = matchMode;
     EscapeChar = escapeChar;
     IgnoreCase = ignoreCase;
 }
Beispiel #3
0
 /// <summary>
 /// Instantiates with null escape char and case-sensitive.
 /// </summary>
 /// <param name="expression">the expression to be constrained</param>
 /// <param name="value">the value</param>
 /// <param name="matchMode">the <see cref="MatchMode"/></param>
 public LikeExpression(IExpression expression, String value, MatchMode matchMode)
     : this(expression, value, matchMode, null, false)
 { }
Beispiel #4
0
 /// <summary>
 /// A case-insensitive "like", similar to Postgres <code>ilike</code>.
 /// </summary>
 public static IExpression Ilike(String fieldName, String value, MatchMode matchMode)
 {
     return new IlikeExpression(Field(fieldName), value, matchMode);
 }