44 references to SQuery
System.Data.Entity (44)
System\Data\Mapping\ViewGeneration\CellCreator.cs (4)
103foreach (var memberToExpand in cell.SQuery.GetProjectedMembers() 105.Where(boolMember => cell.SQuery.GetConjunctsFromWhereClause() 125var cSideMembers = cell.SQuery.GetProjectedPositions(sSideMemberToExpand).Select(pos => ((MemberProjectedSlot)cell.CQuery.ProjectedSlotAt(pos)).MemberPath); 149if (cell.SQuery.GetProjectedMembers().Contains(memberToExpand))
System\Data\Mapping\ViewGeneration\CellPartitioner.cs (4)
71EntitySetBase firstSExtent = cell.SQuery.Extent; 75EntitySetBase secondSExtent = existingCell.SQuery.Extent; 139EntitySetBase sExtent1 = cell1.SQuery.Extent; 140EntitySetBase sExtent2 = cell2.SQuery.Extent;
System\Data\Mapping\ViewGeneration\QueryRewriting\RewritingValidator.cs (2)
69CellTreeNode complementSQueryTreeForCondition = complementWhereClauseVisitor.GetCellTreeNode(cell.SQuery.WhereClause); 105CellTreeNode plainSQueryTreeForCondition = plainWhereClauseVisitor.GetCellTreeNode(cell.SQuery.WhereClause);
System\Data\Mapping\ViewGeneration\Structures\Cell.cs (6)
122List<int> fieldNums = SQuery.GetProjectedPositions(columns); 181Debug.Assert(CQuery.NumProjectedSlots == SQuery.NumProjectedSlots, 186ProjectedSlot sSlot = SQuery.ProjectedSlotAt(i); 207SQuery.ToCompactString(builder); 214SQuery.ToFullString(builder); 240cell.SQuery.ToFullString(builder);
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (1)
334CellQuery rightCellQuery = isCQuery? sourceCell.SQuery : sourceCell.CQuery;
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (1)
398CellQuery sQuery = cell.SQuery;
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (1)
268CellQuery sQuery = cell.SQuery;
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (2)
211!leftCellWrapper.OnlyInputCell.CQuery.WhereClause.Equals(leftCellWrapper.OnlyInputCell.SQuery.WhereClause) && /* projection allowed when both conditions are equal */ 633return wrapper.Cells.SelectMany(c => c.SQuery.Conditions).Any();
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (7)
272if (cell.SQuery.Extent.Equals(ChildTable) == false) 599List<int> columnIndexes = cell.SQuery.GetProjectedPositions(columns, endIndexes); 652if (cell.SQuery.Extent.Equals(ChildTable)) 657if (cell.SQuery.Extent.Equals(ParentTable)) 804List<int> localslotNums = cell.SQuery.GetProjectedPositions(columns, endSlots); 813List<int> localslotNums = cell.SQuery.GetProjectedPositions(columns); 861EntitySetBase table = cell.SQuery.Extent;
System\Data\Mapping\ViewGeneration\Validation\ViewCellRelation.cs (1)
40m_cell.SQuery.CreateBasicCellRelation(this);
System\Data\Mapping\ViewGeneration\Validator.cs (9)
135BasicCellRelation sCellRelation = cell.SQuery.BasicCellRelation; 207ExtentPair pair = new ExtentPair(cKeyConstraint.Cell.CQuery.Extent, cKeyConstraint.Cell.SQuery.Extent); 285if (cell.SQuery.SelectDistinctFlag == CellQuery.SelectDistinct.Yes) 288var sExtent = cell.SQuery.Extent; 292.Where(otherCell => otherCell.CQuery.Extent == cExtent && otherCell.SQuery.Extent == sExtent); 327ErrorLog.Record error = cell.SQuery.CheckForDuplicateFields(cell.CQuery, cell); 343error = cell.SQuery.VerifyKeysPresent(cell, Strings.ViewGen_TableKey_Missing, null, ViewGenErrorCode.KeyNotMappedForTable); 351error = cell.CQuery.CheckForProjectedNotNullSlots(cell, m_cells.Where(c=> c.SQuery.Extent is AssociationSet)); 356error = cell.SQuery.CheckForProjectedNotNullSlots(cell, m_cells.Where(c => c.CQuery.Extent is AssociationSet));
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (1)
64Debug.Assert(cell.CQuery.NumProjectedSlots == cell.SQuery.NumProjectedSlots);
System\Data\Mapping\ViewGeneration\ViewGenerator.cs (5)
88cell.SQuery.WhereClause.FixDomainMap(updateOpenDomain); 90cell.SQuery.WhereClause.ExpensiveSimplify(); 92cell.SQuery.WhereClause.FixDomainMap(m_updateDomainMap); 208cell.SQuery.WhereClause.FixDomainMap(m_updateDomainMap); 232cell.SQuery.UpdateWhereClause(updateDomainMap);