54 references to Keys
System.Data.Entity (54)
System\Data\Query\InternalTrees\NodeInfo.cs (39)
266
m_hashValue = (m_hashValue << 4) ^ NodeInfo.GetHashValue(this.
Keys
.KeyVars);
492
nodeInfo.
Keys
.InitFrom(op.Table.Keys);
532
nodeInfo.
Keys
.InitFrom(op.Table.Keys);
538
Debug.Assert(nodeInfo.
Keys
.NoKeys, "UnnestOp should have no keys in all cases except TVFs mapped to entities.");
639
nodeInfo.
Keys
.NoKeys = true;
640
if (!relOpChildNodeInfo.
Keys
.NoKeys)
644
VarVec keyVec = m_command.CreateVarVec(relOpChildNodeInfo.
Keys
.KeyVars);
652
nodeInfo.
Keys
.InitFrom(mappedKeyVecClone);
694
nodeInfo.
Keys
.InitFrom(relOpChildNodeInfo.
Keys
);
775
nodeInfo.
Keys
.InitFrom(op.Keys);
815
keyVecList.Add(chiNodeInfo.
Keys
);
829
nodeInfo.
Keys
.InitFrom(keyVecList);
886
nodeInfo.
Keys
.InitFrom(leftRelOpNodeInfo.
Keys
, rightRelOpNodeInfo.
Keys
);
967
nodeInfo.
Keys
.InitFrom(leftRelOpNodeInfo.
Keys
, rightRelOpNodeInfo.
Keys
);
1037
nodeInfo.
Keys
.InitFrom(op.Outputs);
1056
nodeInfo.
Keys
.NoKeys = true;
1065
if (!childNodeInfo.
Keys
.NoKeys && !childNodeInfo.
Keys
.KeyVars.IsEmpty)
1067
mappedKeyVec = childNodeInfo.
Keys
.KeyVars.Remap(unionAllOp.VarMap[i].GetReverseMap());
1085
nodeInfo.
Keys
.NoKeys = true;
1089
nodeInfo.
Keys
.InitFrom(nodeKeys);
1145
nodeInfo.
Keys
.InitFrom(relOpChildNodeInfo.
Keys
);
1188
nodeInfo.
Keys
.InitFrom(op.Keys, true);
1233
nodeInfo.
Keys
.InitFrom(childNodeInfo.
Keys
);
1252
nodeInfo.
Keys
.NoKeys = false;
1289
if (!driverChildNodeInfo.
Keys
.NoKeys)
1291
VarVec missingKeys = m_command.CreateVarVec(driverChildNodeInfo.
Keys
.KeyVars);
1295
nodeInfo.
Keys
.InitFrom(driverChildNodeInfo.
Keys
);
1341
nodeInfo.
Keys
.InitFrom(GetExtendedNodeInfo(n.Child0).
Keys
);
1345
nodeInfo.
Keys
.InitFrom(ssnOp.Keys);
System\Data\Query\PlanCompiler\KeyPullup.cs (9)
64
if (nodeInfo.
Keys
.NoKeys)
68
return nodeInfo.
Keys
;
138
if (!childNodeInfo.
Keys
.NoKeys)
144
VarVec mappedKeyVec = childNodeInfo.
Keys
.KeyVars.Remap(varRenameMap);
247
VarVec existingKeyVars = branchNodeInfo.
Keys
.KeyVars.Remap(op.VarMap[i]);
353
branchNodeInfo.
Keys
.KeyVars.Set(branchDiscriminatorVar);
375
projectNodeInfo.
Keys
.KeyVars.InitFrom(branchNodeInfo.
Keys
.KeyVars);
376
projectNodeInfo.
Keys
.KeyVars.Set(branchDiscriminatorVar);
System\Data\Query\PlanCompiler\NestPullup.cs (1)
1267
VarVec keyVars = Command.GetExtendedNodeInfo(nestOpInput).
Keys
.KeyVars;
System\Data\Query\PlanCompiler\TransformationRules.cs (5)
3725
if (predicate.SatisfiesKey(childNodeInfo.
Keys
.KeyVars, childNodeInfo.Definitions))
4190
if (nodeInfo.
Keys
.NoKeys || !op.Keys.Subsumes(nodeInfo.
Keys
.KeyVars))
4435
if (!nodeInfo.
Keys
.NoKeys && op.Keys.Subsumes(nodeInfo.
Keys
.KeyVars))