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); } } }
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); } } }