/// <summary> /// Translate a ParameterAliasNode. /// </summary> /// <param name="nodeIn">The node to be translated.</param> /// <returns>The translated node.</returns> public override QueryNode Visit(ParameterAliasNode nodeIn) { SingleValueNode node = ODataPathSegmentTranslator.TranslateParameterAlias(nodeIn, _parameterAliasNode); if (node == null) { return(new ConstantNode(null)); } else { return(node.Accept(this)); } }
public override string Visit(CollectionOpenPropertyAccessNode nodeIn) => $"{AcceptAsPrefix(nodeIn.Source)}{nodeIn .Name}"; // return base.Visit(nodeIn); private string AcceptAsPrefix(SingleValueNode nodeInSource) { string prefix = nodeInSource.Accept(this); return(prefix.Length > 0 ? $"{prefix}{_SL}": prefix); }