Like() public static method

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