Exemplo n.º 1
0
 /// <summary>
 /// Visit an AggregatedCollectionPropertyNode
 /// </summary>
 /// <param name="nodeIn">the node to visit</param>
 /// <returns>true, indicating that the node has been visited.</returns>
 public override bool Visit(AggregatedCollectionPropertyNode nodeIn)
 {
     validate(nodeIn);
     validate(nodeIn.Property);
     validate(nodeIn.TypeReference.Definition);
     return(true);
 }
Exemplo n.º 2
0
        public override QueryNode Visit(AggregatedCollectionPropertyNode nodeIn)
        {
            CollectionNavigationNode?source = nodeIn.Source == null ? null : (CollectionNavigationNode)Visit(nodeIn.Source);

            if (nodeIn.Source != source)
            {
                nodeIn = new AggregatedCollectionPropertyNode(source, nodeIn.Property);
            }
            return(nodeIn);
        }