Contains() public static méthode

Encodes the value for a SqlComparisonType.Contains expression.
public static Contains ( String value ) : String
value String The value.
Résultat String
Exemple #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));
 }
Exemple #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));
 }