Ejemplo n.º 1
0
 public override bool Equals(object obj)
 {
     if (this == obj)
     {
         return(true);
     }
     if (obj == null)
     {
         return(false);
     }
     if (GetType() != obj.GetType())
     {
         return(false);
     }
     Net.Vpc.Upa.Expressions.IndexedTag other = (Net.Vpc.Upa.Expressions.IndexedTag)obj;
     if (this.index != other.index)
     {
         return(false);
     }
     if ((this.name == null) ? (other.name != null) : !this.name.Equals(other.name))
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 2
0
 public override void SetChild(Net.Vpc.Upa.Expressions.Expression e, Net.Vpc.Upa.Expressions.ExpressionTag tag)
 {
     if (ENTITY.Equals(tag))
     {
         this.entity = (Net.Vpc.Upa.Expressions.EntityName)e;
     }
     else if (SELECTION.Equals(tag))
     {
         this.selection = (Net.Vpc.Upa.Expressions.QueryStatement)e;
     }
     else
     {
         Net.Vpc.Upa.Expressions.IndexedTag ii = (Net.Vpc.Upa.Expressions.IndexedTag)tag;
         fields[ii.GetIndex()] = (Net.Vpc.Upa.Expressions.Var)e;
     }
 }
Ejemplo n.º 3
0
 public override void SetChild(Net.Vpc.Upa.Expressions.Expression e, Net.Vpc.Upa.Expressions.ExpressionTag tag)
 {
     if (ENTITY.Equals(tag))
     {
         this.entity = (Net.Vpc.Upa.Expressions.EntityName)e;
     }
     else
     {
         Net.Vpc.Upa.Expressions.IndexedTag ii = (Net.Vpc.Upa.Expressions.IndexedTag)tag;
         if (ii.GetName().Equals("VAR"))
         {
             fields[ii.GetIndex()].SetVar((Net.Vpc.Upa.Expressions.Var)e);
         }
         else
         {
             fields[ii.GetIndex()].SetVal(e);
         }
     }
 }
Ejemplo n.º 4
0
 public override void SetChild(Net.Vpc.Upa.Expressions.Expression e, Net.Vpc.Upa.Expressions.ExpressionTag tag)
 {
     if (ENTITY.Equals(tag))
     {
         this.queryEntity = (Net.Vpc.Upa.Expressions.NameOrQuery)e;
     }
     else if (WEHRE.Equals(tag))
     {
         this.where = e;
     }
     else if (HAVING.Equals(tag))
     {
         this.having = e;
     }
     else
     {
         Net.Vpc.Upa.Expressions.IndexedTag ii = (Net.Vpc.Upa.Expressions.IndexedTag)tag;
         string en = ii.GetName();
         if (en.Equals("FIELD"))
         {
             fields[ii.GetIndex()].SetExpression(e);
         }
         else if (en.Equals("JOIN_ENTITY"))
         {
             joinsEntities[ii.GetIndex()].SetEntity((Net.Vpc.Upa.Expressions.NameOrQuery)e);
         }
         else if (en.Equals("JOIN_COND"))
         {
             joinsEntities[ii.GetIndex()].SetCondition(e);
         }
         else if (en.Equals("GROUP"))
         {
             group.SetGroupAt(ii.GetIndex(), e);
         }
         else if (en.Equals("ORDER"))
         {
             order.SetOrderAt(ii.GetIndex(), e);
         }
     }
 }