59 references to CQuery
System.Data.Entity (59)
System\Data\Mapping\ViewGeneration\CellCreator.cs (2)
125var cSideMembers = cell.SQuery.GetProjectedPositions(sSideMemberToExpand).Select(pos => ((MemberProjectedSlot)cell.CQuery.ProjectedSlotAt(pos)).MemberPath); 165foreach (var cMemberToExpand in cell.CQuery.GetProjectedMembers().Intersect(mappedCSideMembers))
System\Data\Mapping\ViewGeneration\CellPartitioner.cs (6)
70EntitySetBase firstCExtent = cell.CQuery.Extent; 74EntitySetBase secondCExtent = existingCell.CQuery.Extent; 105AssociationSet cRelationSet1 = cell1.CQuery.Extent as AssociationSet; 106AssociationSet cRelationSet2 = cell2.CQuery.Extent as AssociationSet; 107if (cRelationSet1 != null && MetadataHelper.IsExtentAtSomeRelationshipEnd(cRelationSet1, cell2.CQuery.Extent)) 111if (cRelationSet2 != null && MetadataHelper.IsExtentAtSomeRelationshipEnd(cRelationSet2, cell1.CQuery.Extent))
System\Data\Mapping\ViewGeneration\Structures\Cell.cs (7)
135ProjectedSlot projectedSlot = CQuery.ProjectedSlotAt(fieldNum); 181Debug.Assert(CQuery.NumProjectedSlots == SQuery.NumProjectedSlots, 183for (int i = 0; i < CQuery.NumProjectedSlots; i++) 185ProjectedSlot cSlot = CQuery.ProjectedSlotAt(i); 205CQuery.ToCompactString(builder); 212CQuery.ToFullString(builder); 235cell.CQuery.ToFullString(builder);
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (2)
332bool isCQuery = sourceCell.CQuery == this; 334CellQuery rightCellQuery = isCQuery? sourceCell.SQuery : sourceCell.CQuery;
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (2)
346CellQuery cQuery = cell.CQuery; 397CellQuery cQuery = cell.CQuery;
System\Data\Mapping\ViewGeneration\Structures\MemberDomainMap.cs (1)
267CellQuery cQuery = cell.CQuery;
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (5)
96foreach (var restriction in cell.CQuery.Conditions) 211!leftCellWrapper.OnlyInputCell.CQuery.WhereClause.Equals(leftCellWrapper.OnlyInputCell.SQuery.WhereClause) && /* projection allowed when both conditions are equal */ 509(fragment1.OnlyInputCell.CQuery.Extent is AssociationSet || 510fragment2.OnlyInputCell.CQuery.Extent is AssociationSet)) 607foreach (var restriction in cell.CQuery.Conditions)
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (17)
308AssociationSet assocSet = (AssociationSet)cell.CQuery.Extent; 356if (cell.CQuery.Extent.BuiltInTypeKind != BuiltInTypeKind.AssociationSet) 466cell.CQuery.Extent.Name, parentEnd.Name); 477cell.CQuery.Extent.Name, parentEnd.Name); 485Trace.WriteLine("Foreign key mapped to relationship " + cell.CQuery.Extent.Name); 498AssociationSet relationSet = (AssociationSet)cell.CQuery.Extent; 517cell.CQuery.Extent.Name, parentEnd.Name, ParentTable.Name, endSet.Name); 534CellQuery cQuery = cell.CQuery; 572if (cell.CQuery.Extent is EntitySet) 577AssociationSet relationSet = (AssociationSet)cell.CQuery.Extent; 593List<int> endIndexes = cell.CQuery.GetProjectedPositions(primaryKey.KeyFields); 693MemberProjectedSlot childSlot = (MemberProjectedSlot)childCell.CQuery.ProjectedSlotAt(childSlotNum); 716MemberProjectedSlot parentSlot = (MemberProjectedSlot)parentCell.CQuery.ProjectedSlotAt(parentSlotNum); 777childCell.CQuery.Extent.Name, 781errorParentCell.CQuery.Extent.Name); 795AssociationSet set = cell.CQuery.Extent as AssociationSet; 802List<int> endSlots = cell.CQuery.GetAssociationEndSlots(setEnd.CorrespondingAssociationEndMember);
System\Data\Mapping\ViewGeneration\Validation\ViewCellRelation.cs (1)
39m_cell.CQuery.CreateBasicCellRelation(this);
System\Data\Mapping\ViewGeneration\Validator.cs (8)
134BasicCellRelation cCellRelation = cell.CQuery.BasicCellRelation; 207ExtentPair pair = new ExtentPair(cKeyConstraint.Cell.CQuery.Extent, cKeyConstraint.Cell.SQuery.Extent); 287var cExtent = cell.CQuery.Extent; 292.Where(otherCell => otherCell.CQuery.Extent == cExtent && otherCell.SQuery.Extent == sExtent); 327ErrorLog.Record error = cell.SQuery.CheckForDuplicateFields(cell.CQuery, cell); 335error = cell.CQuery.VerifyKeysPresent(cell, Strings.ViewGen_EntitySetKey_Missing, 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 (2)
64Debug.Assert(cell.CQuery.NumProjectedSlots == cell.SQuery.NumProjectedSlots); 270wrapper.OnlyInputCell.CQuery.WhereClause.MemberRestrictions.Select(oneOf => oneOf.RestrictedMemberSlot.MemberPath),
System\Data\Mapping\ViewGeneration\ViewGenerator.cs (4)
87cell.CQuery.WhereClause.FixDomainMap(queryOpenDomain); 89cell.CQuery.WhereClause.ExpensiveSimplify(); 91cell.CQuery.WhereClause.FixDomainMap(m_queryDomainMap); 231cell.CQuery.UpdateWhereClause(queryDomainMap);
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (2)
232mappedExtents.Add(cell.CQuery.Extent); 235container = cell.CQuery.Extent.EntityContainer;