示例#1
0
 public virtual int IndexOf(Net.Vpc.Upa.Expressions.Expression field)
 {
     for (int i = 0; i < (fields).Count; i++)
     {
         Net.Vpc.Upa.Expressions.QueryField info = fields[i];
         if (field.Equals(info.GetExpression()))
         {
             return(i);
         }
     }
     return(-1);
 }
 public virtual Net.Vpc.Upa.Expressions.ExpressionTransformerResult Transform(Net.Vpc.Upa.Expressions.Expression expression)
 {
     if (expression is Net.Vpc.Upa.Expressions.Var)
     {
         Net.Vpc.Upa.Expressions.Expression e = EvalVar((Net.Vpc.Upa.Expressions.Var)(expression).Copy());
         if (!e.Equals(expression))
         {
             return(new Net.Vpc.Upa.Expressions.ExpressionTransformerResult(e, true, true));
         }
     }
     return(null);
 }
示例#3
0
 public override bool Equals(object o)
 {
     if (this == o)
     {
         return(true);
     }
     if (o == null || GetType() != o.GetType())
     {
         return(false);
     }
     Net.Vpc.Upa.Impl.Persistence.ExpressionFieldPersister that = (Net.Vpc.Upa.Impl.Persistence.ExpressionFieldPersister)o;
     if (expression != null ? !expression.Equals(that.expression) : that.expression != null)
     {
         return(false);
     }
     if (field != null ? !field.Equals(that.field) : that.field != null)
     {
         return(false);
     }
     return(true);
 }