/// <summary> /// Writes collection property cast node to string. /// </summary> /// <param name="node">Node to write to string</param> /// <returns>String representation of node.</returns> private static string ToString(CollectionPropertyCastNode node) { return(tabHelper.Prefix + "CollectionPropertyCastNode" + tabHelper.Indent(() => tabHelper.Prefix + "Property = " + node.Source.Property.Name + tabHelper.Prefix + "TypeReference = " + node.ItemType + tabHelper.Prefix + "Source = " + ToString(node.Source) )); }
/// <summary> /// Visit an CollectionPropertyCastNode /// </summary> /// <param name="node">the node to visit</param> /// <returns>The translated string of CollectionPropertyCastNode</returns> public override string Visit(CollectionPropertyCastNode node) { return(this.TranslatePropertyAccess(node.Source, node.CollectionType.Definition.ToString())); }
/// <summary> /// Visit an CollectionPropertyCastNode /// </summary> /// <param name="node">the node to visit</param> /// <returns>The translated String of CollectionPropertyCastNode</returns> public override String Visit(CollectionPropertyCastNode node) { ExceptionUtils.CheckArgumentNotNull(node, "node"); return(this.TranslatePropertyAccess(node.Source, node.CollectionType.Definition.ToString())); }
/// <summary> /// Translate a CollectionPropertyCastNode. /// </summary> /// <param name="nodeIn">The node to be translated.</param> /// <returns>The translated node.</returns> public override QueryNode Visit(CollectionPropertyCastNode nodeIn) { return(new CollectionPropertyCastNode( (CollectionPropertyAccessNode)nodeIn.Source.Accept(this), (IEdmComplexType)nodeIn.ItemType.Definition)); }
/// <summary> /// Visit an CollectionPropertyCastNode /// </summary> /// <param name="nodeIn">the node to visit</param> /// <returns>Defined by the implementer</returns> public virtual T Visit(CollectionPropertyCastNode nodeIn) { throw new NotImplementedException(); }
/// <summary> /// Writes collection property cast node to string. /// </summary> /// <param name="node">Node to write to string</param> /// <returns>String representation of node.</returns> private static string ToString(CollectionPropertyCastNode node) { return tabHelper.Prefix + "CollectionPropertyCastNode" + tabHelper.Indent(() => tabHelper.Prefix + "Property = " + node.Source.Property.Name + tabHelper.Prefix + "TypeReference = " + node.ItemType + tabHelper.Prefix + "Source = " + ToString(node.Source) ); }