Exemplo n.º 1
0
 public override void Visit(RelPropertyOp op, Node n)
 {
     VisitScalarOpDefault(op, n);
     Assert(m_command.IsRelPropertyReferenced(op.PropertyInfo), "no such rel property:", op.PropertyInfo);
     Assert(
         TypeSemantics.IsEntityType(n.Child0.Op.Type), "argument to RelPropertyOp must be an entity type. Found: ", n.Child0.Op.Type);
 }
Exemplo n.º 2
0
 public override void Visit(RelPropertyOp op, Node n)
 {
     using (new AutoString(this, op))
     {
         VisitChildren(n);
         WriteString(".NAVIGATE(");
         WriteString(op.PropertyInfo.Relationship.Name);
         WriteString(",");
         WriteString(op.PropertyInfo.FromEnd.Name);
         WriteString(",");
         WriteString(op.PropertyInfo.ToEnd.Name);
         WriteString(")");
     }
 }
Exemplo n.º 3
0
 // <summary>
 // Copies a RelPropertyOp
 // </summary>
 // <param name="op"> the RelPropertyOp to copy </param>
 // <param name="n"> node tree corresponding to 'op' </param>
 // <returns> a copy of the node tree </returns>
 public override Node Visit(RelPropertyOp op, Node n)
 {
     return(CopyDefault(m_destCmd.CreateRelPropertyOp(op.PropertyInfo), n));
 }
 public virtual void Visit(RelPropertyOp op, Node n)
 {
     this.VisitScalarOpDefault((ScalarOp)op, n);
 }
Exemplo n.º 5
0
 /// <summary>
 ///     Visitor pattern method for RelPropertyOp
 /// </summary>
 /// <param name="op"> The RelPropertyOp being visited </param>
 /// <param name="n"> The Node that references the Op </param>
 public virtual void Visit(RelPropertyOp op, Node n)
 {
     VisitScalarOpDefault(op, n);
 }
Exemplo n.º 6
0
 // <summary>
 // RelPropertyOp
 // </summary>
 public virtual TResultType Visit(RelPropertyOp op, Node n)
 {
     return(VisitScalarOpDefault(op, n));
 }