Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public InsertSelection(Net.Vpc.Upa.Expressions.InsertSelection other)  : this()
 {
     AddQuery(other);
 }
Exemplo n.º 3
0
 public override Net.Vpc.Upa.Expressions.Expression Copy()
 {
     Net.Vpc.Upa.Expressions.InsertSelection o = new Net.Vpc.Upa.Expressions.InsertSelection();
     o.AddQuery(this);
     return(o);
 }
Exemplo n.º 4
0
 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);
 }