Ejemplo n.º 1
0
 protected InExpression UpdateIn(InExpression @in, Expression expression, SelectExpression select, IEnumerable <Expression> values)
 {
     if (expression != @in.Expression || select != @in.Select || values != @in.Values)
     {
         if (select != null)
         {
             return(new InExpression(expression, select));
         }
         else
         {
             return(new InExpression(expression, values));
         }
     }
     return(@in);
 }
Ejemplo n.º 2
0
 protected virtual bool CompareIn(InExpression a, InExpression b)
 {
     return(this.Compare(a.Expression, b.Expression) &&
            this.Compare(a.Select, b.Select) &&
            this.CompareExpressionList(a.Values, b.Values));
 }