protected internal virtual Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledInsertSelection CompileInsertSelection(Net.Vpc.Upa.Expressions.InsertSelection v, Net.Vpc.Upa.Impl.Uql.ExpressionTranslationManager manager, Net.Vpc.Upa.Impl.Uql.ExpressionDeclarationList declarations) { if (v == null) { return(null); } Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledInsertSelection s = new Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledInsertSelection(); s.Into(v.GetEntity().GetName()); for (int i = 0; i < v.CountFields(); i++) { Net.Vpc.Upa.Expressions.Var fvar = v.GetField(i); s.Field(fvar.GetName()); } s.From((Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledQueryStatement)manager.TranslateAny(v.GetSelection(), declarations)); return(s); }
public virtual Net.Vpc.Upa.Expressions.InsertSelection AddQuery(Net.Vpc.Upa.Expressions.InsertSelection other) { if (other == null) { return(this); } if (other.entity != null) { entity = other.entity; } if (other.alias != null) { alias = other.alias; } for (int i = 0; i < (other.fields).Count; i++) { Field(other.GetField(i).GetName()); } if (other.selection != null) { selection = (Net.Vpc.Upa.Expressions.QueryStatement)other.selection.Copy(); } return(this); }