2 instantiations of ExpandNode
System.Data.Services (2)
System\Data\Services\Providers\BasicExpandProvider.cs (2)
822
ExpandNode expandNode = new
ExpandNode
(rootProjectionNode, provider);
848
ExpandNode expandNode = new
ExpandNode
(expandedProjectionNode, this.ExpandProvider);
53 references to ExpandNode
System.Data.Services (53)
System\Data\Services\Providers\BasicExpandProvider.cs (53)
141
ExpandNode
root =
ExpandNode
.BuildExpansionAndProjectionTree(this, rootNode);
199
/// <param name="root">The root <see cref="
ExpandNode
"/> where we store information about the shape
208
ExpandNode
root)
591
private List<
ExpandNode
> children;
685
/// <summary>Initalizes a new <see cref="
ExpandNode
"/>.</summary>
696
this.children = new List<
ExpandNode
>();
747
foreach (
var
child in this.children)
810
/// <summary>Builds a tree of <see cref="
ExpandNode
"/> items and the list of projected properties on them.</summary>
814
internal static
ExpandNode
BuildExpansionAndProjectionTree(
822
ExpandNode
expandNode = new ExpandNode(rootProjectionNode, provider);
848
ExpandNode
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>
878
internal
ExpandNode
FindChild(string name)
880
foreach (
ExpandNode
child in this.children)
968
Dictionary<Expression,
ExpandNode
> expandNodeAnnotations =
1055
foreach (
ExpandNode
child in this.children)
1074
foreach (
ExpandNode
child in this.children)
1111
foreach (
ExpandNode
child in this.children)
1360
MethodInfo method =
ExpandNode
.WhereMethodInfoEnumerable.MakeGenericMethod(expressionElementType);
1368
MethodInfo method =
ExpandNode
.TakeMethodInfoEnumerable.MakeGenericMethod(expressionElementType);
1421
MethodInfo method =
ExpandNode
.SelectMethodInfoEnumerable.MakeGenericMethod(expressionElementType, this.elementType);
1446
ExpandNode
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"/>
1845
private
ExpandNode
parameterExpandNode;
1849
/// <see cref="
ExpandNode
"/>.
1854
private Dictionary<Expression,
ExpandNode
> expandNodeAnnotations;
1858
/// <param name="parameterExpandNode">The <see cref="
ExpandNode
"/> into which the resource from
1860
private ExpandNodeAnnotationVisitor(ParameterExpression parameter,
ExpandNode
parameterExpandNode)
1864
this.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>
1873
internal static Dictionary<Expression,
ExpandNode
> AnnotateExpression(
1876
ExpandNode
parameterExpandNode)
1886
/// <remarks>This class needs to override this method since it needs to "merge" the <see cref="
ExpandNode
"/> annotations
1892
ExpandNode
trueAnnotation = this.GetExpandNodeAnnotation(c.IfTrue);
1893
ExpandNode
falseAnnotation = this.GetExpandNodeAnnotation(c.IfFalse);
1925
ExpandNode
operandAnnotation = this.GetExpandNodeAnnotation(u.Operand);
1978
ExpandNode
operandExpandNode = this.GetExpandNodeAnnotation(operandExpression);
1981
ExpandNode
childExpandNode = operandExpandNode.FindChild(propertyName);
1994
private
ExpandNode
GetExpandNodeAnnotation(Expression expression)
1996
ExpandNode
annotation;
2010
private void SetExpandNodeAnnotation(Expression expression,
ExpandNode
annotation)
2030
private Dictionary<Expression,
ExpandNode
> expandNodeAnnotations;
2035
Dictionary<Expression,
ExpandNode
> expandNodeAnnotations)
2042
/// <see cref="
ExpandNode
"/>s.</summary>
2048
Dictionary<Expression,
ExpandNode
> expandNodeAnnotations)
2081
ExpandNode
operandExpandNode;