예제 #1
0
        // <summary>
        // Copies a NewEntityOp
        // </summary>
        // <param name="op"> the NewEntityOp to copy </param>
        // <param name="n"> node tree corresponding to the NewEntityOp </param>
        // <returns> a copy of the node tree </returns>
        public override Node Visit(NewEntityOp op, Node n)
        {
            NewEntityOp opCopy;

            if (op.Scoped)
            {
                opCopy = m_destCmd.CreateScopedNewEntityOp(op.Type, op.RelationshipProperties, op.EntitySet);
            }
            else
            {
                Debug.Assert(op.EntitySet == null, "op.EntitySet must be null for the constructor that hasn't been scoped yet.");
                opCopy = m_destCmd.CreateNewEntityOp(op.Type, op.RelationshipProperties);
            }
            return(CopyDefault(opCopy, n));
        }
예제 #2
0
 public override void Visit(NewEntityOp op, Node n)
 {
     VisitNewOp(op, n);
 }
 public override Node Visit(NewEntityOp op, Node n)
 {
     return(this.CopyDefault(!op.Scoped ? (Op)this.m_destCmd.CreateNewEntityOp(op.Type, op.RelationshipProperties) : (Op)this.m_destCmd.CreateScopedNewEntityOp(op.Type, op.RelationshipProperties, op.EntitySet), n));
 }
예제 #4
0
 public override void Visit(NewEntityOp op, Node n)
 {
     this.VisitNewOp((Op)op, n);
 }
 public virtual void Visit(NewEntityOp op, Node n)
 {
     this.VisitScalarOpDefault((ScalarOp)op, n);
 }
예제 #6
0
 /// <summary>
 ///     Visitor pattern method for NewEntityOp
 /// </summary>
 /// <param name="op"> The NewEntityOp being visited </param>
 /// <param name="n"> The Node that references the Op </param>
 public virtual void Visit(NewEntityOp op, Node n)
 {
     VisitScalarOpDefault(op, n);
 }
예제 #7
0
 // <summary>
 // NewEntityOp
 // </summary>
 public virtual TResultType Visit(NewEntityOp op, Node n)
 {
     return(VisitScalarOpDefault(op, n));
 }