EndsWith() public static method

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