Example #1
0
 public static QueryExpresion And(this QueryExpresion expr, string nextExpression)
 {
     if (!string.IsNullOrEmpty(nextExpression))
     {
         expr.Junction = SqlUtil.AND;
         expr.Last().NextExpression = new QueryExpresion(SqlUtil.AND, nextExpression);
     }
     return(expr);
 }
Example #2
0
 public static QueryExpresion Append(this QueryExpresion expr, string junction, string nextExpression)
 {
     if (!string.IsNullOrEmpty(nextExpression) && !string.IsNullOrEmpty(junction))
     {
         expr.Junction = junction;
         expr.Last().NextExpression = new QueryExpresion(nextExpression);
     }
     return(expr);
 }