Contains() public static method

Encodes the value for a SqlComparisonType.Contains expression.
public static Contains ( String value ) : String
value String The value.
return String
Ejemplo n.º 1
0
 /// <summary>
 /// Creates a <see cref="SqlComparisonType.Contains"/> expression.
 /// </summary>
 /// <param name="column"></param>
 /// <param name="value"></param>
 /// <param name="ignoreCase"></param>
 /// <returns></returns>
 protected override string Contains(string column, string value, bool ignoreCase)
 {
     value = SqlUtil.Contains(value);
     return(SqlUtil.Like(column, Parameters.GetParameter(value), ignoreCase, false));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a <see cref="SqlComparisonType.Contains"/> expression.
 /// </summary>
 /// <param name="column"></param>
 /// <param name="value"></param>
 /// <param name="ignoreCase"></param>
 /// <returns></returns>
 protected virtual String Contains(String column, String value, bool ignoreCase)
 {
     return(SqlUtil.Contains(column, value, ignoreCase));
 }