StartsWith() public static method

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