2 instantiations of ExpandNode
System.Data.Services (2)
System\Data\Services\Providers\BasicExpandProvider.cs (2)
822ExpandNode expandNode = new ExpandNode(rootProjectionNode, provider); 848ExpandNode expandNode = new ExpandNode(expandedProjectionNode, this.ExpandProvider);
53 references to ExpandNode
System.Data.Services (53)
System\Data\Services\Providers\BasicExpandProvider.cs (53)
141ExpandNode root = ExpandNode.BuildExpansionAndProjectionTree(this, rootNode); 199/// <param name="root">The root <see cref="ExpandNode"/> where we store information about the shape 208ExpandNode root) 591private List<ExpandNode> children; 685/// <summary>Initalizes a new <see cref="ExpandNode"/>.</summary> 696this.children = new List<ExpandNode>(); 747foreach (var child in this.children) 810/// <summary>Builds a tree of <see cref="ExpandNode"/> items and the list of projected properties on them.</summary> 814internal static ExpandNode BuildExpansionAndProjectionTree( 822ExpandNode expandNode = new ExpandNode(rootProjectionNode, provider); 848ExpandNode expandNode = new ExpandNode(expandedProjectionNode, this.ExpandProvider); 875/// <summary>Finds a child <see cref="ExpandNode"/> with the specified name.</summary> 877/// <returns>The child <see cref="ExpandNode"/> or null if none was found.</returns> 878internal ExpandNode FindChild(string name) 880foreach (ExpandNode child in this.children) 968Dictionary<Expression, ExpandNode> expandNodeAnnotations = 1055foreach (ExpandNode child in this.children) 1074foreach (ExpandNode child in this.children) 1111foreach (ExpandNode child in this.children) 1360MethodInfo method = ExpandNode.WhereMethodInfoEnumerable.MakeGenericMethod(expressionElementType); 1368MethodInfo method = ExpandNode.TakeMethodInfoEnumerable.MakeGenericMethod(expressionElementType); 1421MethodInfo method = ExpandNode.SelectMethodInfoEnumerable.MakeGenericMethod(expressionElementType, this.elementType); 1446ExpandNode node = this.children[i]; 1830/// <summary>Expression tree visitor which annotates the tree with <see cref="ExpandNode"/>s.</summary> 1831/// <remarks>Given expression is annotated with <see cref="ExpandNode"/> if it evaluates 1832/// to an instance of the resource which belongs to the resource set represented by the <see cref="ExpandNode"/>. 1834/// customer.BestFriend will be annotated with the <see cref="ExpandNode"/> representing the expanded 1843/// <summary><see cref="ExpandNode"/> into which belongs the resource which the <see cref="parameter"/> 1845private ExpandNode parameterExpandNode; 1849/// <see cref="ExpandNode"/>. 1854private Dictionary<Expression, ExpandNode> expandNodeAnnotations; 1858/// <param name="parameterExpandNode">The <see cref="ExpandNode"/> into which the resource from 1860private ExpandNodeAnnotationVisitor(ParameterExpression parameter, ExpandNode parameterExpandNode) 1864this.expandNodeAnnotations = new Dictionary<Expression, ExpandNode>(ReferenceEqualityComparer<Expression>.Instance); 1867/// <summary>Annotates specified expression with the respective <see cref="ExpandNode"/>s.</summary> 1870/// <param name="parameterExpandNode">The <see cref="ExpandNode"/> which represents the base resource set.</param> 1873internal static Dictionary<Expression, ExpandNode> AnnotateExpression( 1876ExpandNode parameterExpandNode) 1886/// <remarks>This class needs to override this method since it needs to "merge" the <see cref="ExpandNode"/> annotations 1892ExpandNode trueAnnotation = this.GetExpandNodeAnnotation(c.IfTrue); 1893ExpandNode falseAnnotation = this.GetExpandNodeAnnotation(c.IfFalse); 1925ExpandNode operandAnnotation = this.GetExpandNodeAnnotation(u.Operand); 1978ExpandNode operandExpandNode = this.GetExpandNodeAnnotation(operandExpression); 1981ExpandNode childExpandNode = operandExpandNode.FindChild(propertyName); 1994private ExpandNode GetExpandNodeAnnotation(Expression expression) 1996ExpandNode annotation; 2010private void SetExpandNodeAnnotation(Expression expression, ExpandNode annotation) 2030private Dictionary<Expression, ExpandNode> expandNodeAnnotations; 2035Dictionary<Expression, ExpandNode> expandNodeAnnotations) 2042/// <see cref="ExpandNode"/>s.</summary> 2048Dictionary<Expression, ExpandNode> expandNodeAnnotations) 2081ExpandNode operandExpandNode;