System\Data\Query\InternalTrees\OpCopier.cs (13)
26internal static Node Copy(Command cmd, Node n)
41internal static Node Copy(Command cmd, Node node, VarList varList, out VarList newVarList)
45newVarList = Command.CreateVarList();
54internal static Node Copy(Command cmd, Node n, out VarMap varMap)
62internal static List<SortKey> Copy(Command cmd, List<SortKey> sortKeys)
74private Command m_srcCmd;
75protected Command m_destCmd;
85protected OpCopier(Command cmd) : this(cmd, cmd) {}
92private OpCopier(Command destCommand, Command sourceCommand)
197VarList newVarList = Command.CreateVarList(MapVars(varList));
208return Command.CreateSortKey(
1121CollectionInfo newCollectionInfo = Command.CreateCollectionInfo(newCollectionVar, newColumnMap, newFlattendElementVars, newKeys, newSortKeys, ci.DiscriminatorValue);
System\Data\Query\PlanCompiler\ITreeGenerator.cs (13)
62private Command _tree;
66internal ExpressionBindingScope(Command iqtTree, string name, Var iqtVar)
96private readonly Command _command;
103internal LambdaScope(ITreeGenerator treeGen, Command command, Dictionary<string, Tuple<Node, bool>> args)
196private readonly Command _iqtCommand;
246public static Command Generate(DbQueryCommandTree ctree)
254internal static Command Generate(DbQueryCommandTree ctree, System.Data.Mapping.ViewGeneration.DiscriminatorMap discriminatorMap)
1143if (Command.EqualTypes(targetType, nodeVar.Type))
1163if (Command.EqualTypes(node.Op.Type, targetType))
1318if (!Command.EqualTypes(e.Left.ResultType, e.Right.ResultType))
2144TableMD tableMetadata = Command.CreateTableDefinition(e.Target);
2860sortKey = Command.CreateSortKey(specVar, clause.Ascending);
2864sortKey = Command.CreateSortKey(specVar, clause.Ascending, clause.Collation);
System\Data\Query\PlanCompiler\NestPullup.cs (22)
121private Command Command { get { return m_compilerState.Command; } }
256VarList newVarList = Command.CreateVarList(RemapVars(varList, varMap));
1242VarList flattenedElementVarList = Command.CreateVarList(physicalProjectOp.Outputs);
1276CollectionInfo collectionInfo = Command.CreateCollectionInfo(collectionVar, physicalProjectOp.ColumnMap.Element, flattenedElementVarList, keys, sortKeys, null/*discriminatorValue*/);
1627inputNestOp.PrefixSortKeys.Add(Command.CreateSortKey(sk.Var, sk.AscendingSort, sk.Collation));
1667sortKeyList.Add(Command.CreateSortKey(sk.Var, sk.AscendingSort, sk.Collation));
1676sortKeyList.Add(Command.CreateSortKey(sk.Var, sk.AscendingSort, sk.Collation));
1960VarList outputVars = Command.CreateVarList(op.Outputs.Where(v => v.VarType == VarType.Parameter));
2050InternalTrees.SortKey sk = Command.CreateSortKey(v);
2057sortKeyList.Add(Command.CreateSortKey(ssnOp.Discriminator));
2134VarList childFlattenedOutputVars = Command.CreateVarList();
2148nestOp.CollectionInfo[i - 1] = Command.CreateCollectionInfo(chiCi.CollectionVar,
2182VarList drivingNodeVars = Command.CreateVarList(drivingNodeVarVec);
2276CollectionInfo newCollectionInfo = Command.CreateCollectionInfo(
2355discriminatorVarList = Command.CreateVarList();
2534VarList projectOutputs = Command.CreateVarList();
2646VarList unionAllVars = Command.CreateVarList();
2673private OpCopierTrackingCollectionVars(Command cmd)
2689internal static Node Copy(Command cmd, Node n, out VarMap varMap, out Dictionary<Var, Node> newCollectionVarDefinitions)
2729private Command m_command;
2743private SortRemover(Command command, Node topMostSort)
2751internal static void Process(Command command)
System\Data\Query\PlanCompiler\TransformationRules.cs (26)
1322Command command = context.Command;
1390private static Node GetPushdownPredicate(Command command, Node filterNode, VarVec columns, out Node nonPushdownPredicateNode)
1810Command command = trc.Command;
1963Command command = trc.Command;
2231Command command = trc.Command;
2338Command command = trc.Command;
2437Command command = context.Command;
2518Command command = context.Command;
2643Command command = context.Command;
2725Command command = context.Command;
2832Command command = context.Command;
2918Command command = context.Command;
3173private VarDefinitionRemapper(Var oldVar, Command command)
3186internal static void RemapSubtree(Node root, Command command, Var oldVar)
3395Command command = trc.Command;
3555Command command = trc.Command;
3889Command command = trc.Command;
3977Command command = ((TransformationRulesContext)context).Command;
4046private Command m_command;
4048private VarRefReplacer(Dictionary<Var, Node> varReplacementTable, Command command)
4063internal static Node Replace(Dictionary<Var, Node> varReplacementTable, Node root, Command command)
4105private VarRefUsageFinder(VarVec varVec, Command command)
4119internal static bool AnyVarUsedMoreThanOnce(VarVec varVec, Node root, Command command)
4177Command command = context.Command;
4273var command = context.Command;
4428Command command = context.Command;