61 references to Var
System.Data.Entity (61)
System\Data\Query\InternalTrees\Dump.cs (1)
529
attrs.Add("Var", op.
Var
.Id);
System\Data\Query\InternalTrees\NodeInfo.cs (6)
574
varMap[varRefOp.Var] = varDefOp.
Var
;
624
nodeInfo.LocalDefinitions.Set(varDefOp.
Var
);
625
nodeInfo.ExternalReferences.Clear(varDefOp.
Var
);
626
nodeInfo.Definitions.Set(varDefOp.
Var
);
631
nodeInfo.NonNullableDefinitions.Set(varDefOp.
Var
);
753
nodeInfo.NonNullableDefinitions.Set(((VarDefOp)chi.Op).
Var
);
System\Data\Query\InternalTrees\OpCopier.cs (3)
1046
Debug.Assert(op.
Var
.VarType == VarType.Computed, "Unexpected VarType");
1047
Var newVar = m_destCmd.CreateComputedVar(op.
Var
.Type);
1048
SetMappedVar(op.
Var
, newVar);
System\Data\Query\PlanCompiler\AggregatePushdown.cs (4)
445
constantDefinitions.Add(((VarDefOp)definitionNode.Op).
Var
, definitionNode.Child0);
689
_groupAggregateVarInfoManager.Add(op.
Var
, referencedVarInfo, templateNode, isUnnested);
699
_groupAggregateVarInfoManager.Add(op.
Var
, referencedVarInfo, templateNode, isUnnested, newRecordOp.Properties[i]);
718
Var groupAggregateVar = ((VarDefOp)child.Op).
Var
;
System\Data\Query\PlanCompiler\CTreeGenerator.cs (3)
529
PlanCompiler.Assert(defOp.
Var
is ComputedVar, "VarDefOp defined non-Computed Var");
531
varDefs.Add(defOp.
Var
, VisitNode(childNode.Child0));
1743
Var aggVar = aggVarDef.
Var
;
System\Data\Query\PlanCompiler\ITreeGenerator.cs (2)
2696
Var keyVar = ((VarDefOp)keyVarDef.Op).
Var
;
2697
Var copyOfKeyVar = ((VarDefOp)copyOfKeyVarDef.Op).
Var
;
System\Data\Query\PlanCompiler\NestPullup.cs (11)
296
m_varRefMap.Add(op.
Var
, ((VarRefOp)n.Child0.Op).Var);
735
groupByOutputs.Clear(varDefOp.
Var
);
1006
m_definingNodeMap.Add(varDefOp.
Var
, physicalProjectNode);
1008
ConvertToNestOpInput(physicalProjectNode, varDefOp.
Var
, collectionInfoList, collectionNodes, externalReferences, collectionReferences);
1019
m_definingNodeMap.Add(varDefOp.
Var
, physicalProjectNode);
1020
ConvertToNestOpInput(physicalProjectNode, varDefOp.
Var
, collectionInfoList, collectionNodes, externalReferences, collectionReferences);
1108
newNestedProjectOutputs.Set(((VarDefOp)varDefNode.Op).
Var
);
1188
Var defVar = varDefOp.
Var
;
1206
Var defVar = varDefOp.
Var
;
1421
if (newProjectOpOutputs.IsSet(varDefOp.
Var
))
1746
PlanCompiler.Assert(((VarDefOp)n.Child0.Op).
Var
== op.Var, "Unnest var not found?");
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (8)
784
if (TypeUtils.IsStructuredType(varDefOp.
Var
.Type) || TypeUtils.IsCollectionType(varDefOp.
Var
.Type))
789
FlattenComputedVar((ComputedVar)varDefOp.
Var
, chi, out newChiList, out x);
796
else if (md.TypeSemantics.IsEnumerationType(varDefOp.
Var
.Type) || md.TypeSemantics.IsStrongSpatialType(varDefOp.
Var
.Type))
925
m_varInfoMap.CreatePrimitiveTypeVarInfo(varDefOp.
Var
, newVar);
1329
if (TypeUtils.IsCollectionType(varDefOp.
Var
.Type))
1331
ComputedVar computedVar = (ComputedVar)varDefOp.
Var
;
System\Data\Query\PlanCompiler\ProjectionPruner.cs (4)
302
if (IsReferenced(varDefOp.
Var
))
535
VarVec constantKeyVars = this.m_command.CreateVarVec(constantKeys.Select(d => ((VarDefOp)d.Op).
Var
));
544
varDefListNode.Children.RemoveAll(c => constantKeys.Contains(c) && constantKeyVars.IsSet(((VarDefOp)c.Op).
Var
));
550
Var keyVar = ((VarDefOp)keyNode.Op).
Var
;
System\Data\Query\PlanCompiler\PropertyPushdownHelper.cs (2)
550
if (TypeUtils.IsStructuredType(op.
Var
.Type))
552
PropertyRefList myProps = GetPropertyRefList(op.
Var
);
System\Data\Query\PlanCompiler\TransformationRules.cs (17)
312
varRefMap.TryGetValue(varDefOp.
Var
, out refCount) &&
319
if (varMap.TryGetValue(varDefOp.
Var
, out n))
325
varMap.Add(varDefOp.
Var
, chi.Child0);
2153
if (projectNodeInfo.Definitions.IsSet(varDefOp.
Var
))
2274
projectOp.Outputs.Clear(varDefOp.
Var
);
2276
trc.AddVarMapping(varDefOp.
Var
, varRefOp.Var);
2348
if (!canChangeNullSentinelValue || !TransformationRulesContext.TryGetInt32Var(n.Child1.Children.Where(child => child.Child0.Op.OpType == OpType.Constant || child.Child0.Op.OpType == OpType.InternalConstant).Select(child => ((VarDefOp)(child.Op)).
Var
), out inputSentinel))
2350
inputSentinel = n.Child1.Children.Where(child => child.Child0.Op.OpType == OpType.NullSentinel).Select(child => ((VarDefOp)(child.Op)).
Var
).FirstOrDefault();
2373
else if (!inputSentinel.Equals(((VarDefOp)varDefNode.Op).
Var
))
2375
projectOp.Outputs.Clear(((VarDefOp)varDefNode.Op).
Var
);
2377
trc.AddVarMapping(((VarDefOp)varDefNode.Op).
Var
, inputSentinel);
3218
if (op.
Var
== m_oldVar)
3932
groupByOp.Outputs.Clear(varDefOp.
Var
);
3934
groupByOp.Keys.Clear(varDefOp.
Var
);
3936
trc.AddVarMapping(varDefOp.
Var
, varRefOp.Var);
4015
projectDefinitions.Clear(((VarDefOp)varDefNode.Op).
Var
);
4030
Var var = ((VarDefOp)varDefNode.Op).
Var
;