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