Exemplo n.º 1
0
 public virtual void Visiting(SqlLikePredicate likePredicate)
 {
     likePredicate.LeftExpression.Accept(this);
     if (likePredicate.Negative)
     {
         sqlBuilder.Append(" Not");
     }
     sqlBuilder.Append(" Like ");
     likePredicate.RightExpression.Accept(this);
     if (likePredicate.EscapeCharacter.Length > 0)
     {
         sqlBuilder.Append(" Escape " + EncapsulateString(FormatString(likePredicate.EscapeCharacter)));
     }
 }
Exemplo n.º 2
0
 public virtual void Visiting(SqlLikePredicate likePredicate)
 {
     likePredicate.LeftExpression.Accept(this);
     if (likePredicate.Negative)
         sqlBuilder.Append(" Not");
     sqlBuilder.Append(" Like ");
     likePredicate.RightExpression.Accept(this);
     if (likePredicate.EscapeCharacter.Length > 0)
         sqlBuilder.Append(" Escape " + EncapsulateString(FormatString(likePredicate.EscapeCharacter)));
 }
Exemplo n.º 3
0
 public virtual void Visited(SqlLikePredicate likePredicate)
 {
 }
Exemplo n.º 4
0
 public virtual void Visited(SqlLikePredicate likePredicate)
 {
 }
 public SqlLikePredicate GetSqlLikePredicate(SqlExpression leftExpression, SqlExpression rightExpression, bool negative, string escapeCharacter)
 {
     SqlLikePredicate newSqlLikePredicate = new SqlLikePredicate(this, leftExpression, rightExpression, negative, escapeCharacter) ;
     this.sqlPredicate = newSqlLikePredicate;
     return newSqlLikePredicate;
 }