Exemplo n.º 1
0
 /// <summary>
 /// Creates a <see cref="SqlComparisonType.Equals"/> expression.
 /// </summary>
 /// <param name="column"></param>
 /// <param name="value"></param>
 /// <param name="ignoreCase"></param>
 /// <returns></returns>
 protected override string Equals(string column, string value, bool ignoreCase)
 {
     value = SqlUtil.Equals(value);
     return(SqlUtil.Equals(column, Parameters.GetParameter(value), ignoreCase, false));
 }
Exemplo 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 override string StartsWith(string column, string value, bool ignoreCase)
 {
     value = SqlUtil.StartsWith(value);
     return(SqlUtil.Like(column, Parameters.GetParameter(value), ignoreCase, false));
 }
Exemplo n.º 3
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));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a <see cref="SqlComparisonType.Equals"/> expression.
 /// </summary>
 /// <param name="column"></param>
 /// <param name="value"></param>
 /// <param name="ignoreCase"></param>
 /// <returns></returns>
 protected virtual String Equals(String column, String value, bool ignoreCase)
 {
     return(SqlUtil.Equals(column, value, ignoreCase));
 }
Exemplo n.º 5
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));
 }