29 references to Keys
System.Data.Entity (29)
System\Data\Query\InternalTrees\Dump.cs (1)
258
foreach (Var v in op.
Keys
) {
System\Data\Query\InternalTrees\NodeInfo.cs (4)
759
nodeInfo.NonNullableDefinitions.And(op.
Keys
);
775
nodeInfo.Keys.InitFrom(op.
Keys
);
778
nodeInfo.MinRows = op.
Keys
.IsEmpty ? RowCount.One : (relOpChildNodeInfo.MinRows == RowCount.One ? RowCount.One : RowCount.Zero);
779
nodeInfo.MaxRows = op.
Keys
.IsEmpty ? RowCount.One : relOpChildNodeInfo.MaxRows;
System\Data\Query\InternalTrees\OpCopier.cs (2)
815
GroupByOp newGroupOp = m_destCmd.CreateGroupByOp(Copy(op.
Keys
), Copy(op.Outputs));
833
GroupByIntoOp newGroupOp = m_destCmd.CreateGroupByIntoOp(Copy(op.
Keys
), Copy(op.Inputs), Copy(op.Outputs));
System\Data\Query\PlanCompiler\CTreeGenerator.cs (1)
1692
foreach (Var keyVar in op.
Keys
)
System\Data\Query\PlanCompiler\NestPullup.cs (1)
740
Command.CreateGroupByOp(op.
Keys
, groupByOutputs), n.Child0, n.Child1, n.Child2);
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (4)
1075
VarVec newKeys = FlattenVarSet(op.
Keys
);
1078
if (newKeys != op.
Keys
|| newOutputs != op.Outputs)
1103
VarVec newKeys = FlattenVarSet(op.
Keys
);
1107
if (newKeys != op.
Keys
|| newInputs != op.Inputs || newOutputs != op.Outputs)
System\Data\Query\PlanCompiler\ProjectionPruner.cs (5)
492
if (op.
Keys
.Count > 1)
494
RemoveRedundantConstantKeys(op.
Keys
, op.Outputs, n.Child1);
497
AddReference(op.
Keys
); // all keys are referenced
510
if (op.
Keys
.Count == 0 && op.Outputs.Count == 0)
573
result = m_command.CreateNode(m_command.CreateGroupByOp(newOp.
Keys
, newOp.Outputs),
System\Data\Query\PlanCompiler\PropertyPushdownHelper.cs (1)
631
foreach (Var v in op.
Keys
)
System\Data\Query\PlanCompiler\TransformationRules.cs (8)
1721
Node pushdownPredicate = GetPushdownPredicate(context.Command, filterNode, groupByOp.
Keys
, out nonPushdownPredicate);
3934
groupByOp.
Keys
.Clear(varDefOp.Var);
3935
groupByOp.
Keys
.Set(varRefOp.Var);
4181
ProjectOp newOp = command.CreateProjectOp(op.
Keys
);
4190
if (nodeInfo.Keys.NoKeys || !op.
Keys
.Subsumes(nodeInfo.Keys.KeyVars))
4192
newNode = command.CreateNode(command.CreateDistinctOp(command.CreateVarVec(op.
Keys
)), newNode);
4259
if (!groupByOp.
Keys
.IsSet(column))
4269
groupByOp.
Keys
.Clear(column);
System\Data\Query\PlanCompiler\VarRefManager.cs (1)
138
return HasVarReferences(((GroupByOp)node.Op).
Keys
, vars);
System\Data\Query\PlanCompiler\VarRemapper.cs (1)
275
Map(op.
Keys
);