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