コード例 #1
0
 public override Net.Vpc.Upa.Impl.Uql.Compiledexpression.DefaultCompiledExpression Copy()
 {
     Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledInsertSelection o = new Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledInsertSelection();
     o.SetDescription(GetDescription());
     o.GetClientParameters().SetAll(GetClientParameters());
     o.AddQuery(this);
     return(o);
 }
コード例 #2
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);
 }
コード例 #3
0
 public virtual Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledInsertSelection AddQuery(Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledInsertSelection other)
 {
     if (other == null)
     {
         return(this);
     }
     if (other.entity != null)
     {
         entity = other.entity;
         if (other.tableAlias != null)
         {
             tableAlias = other.tableAlias;
         }
         PrepareChildren(this.entity);
         ExportDeclaration(tableAlias, Net.Vpc.Upa.Impl.Uql.DecObjectType.ENTITY, other.entity.GetName(), null);
     }
     for (int i = 0; i < (other.fields).Count; i++)
     {
         Field(other.GetField(i).GetName());
     }
     if (other.selection != null)
     {
         selection = (Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledQueryStatement)other.selection.Copy();
     }
     return(this);
 }
コード例 #4
0
 public CompiledInsertSelection(Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledInsertSelection other)  : this()
 {
     AddQuery(other);
 }