Beispiel #1
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);
         }
     }
 }
Beispiel #2
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);
         }
     }
 }
Beispiel #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 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;
     }
 }