80 references to Extent
System.Data.Entity (80)
System\Data\Mapping\ViewGeneration\BasicViewGenerator.cs (2)
135
EntitySetBase extent = childNode.LeftCellWrapper.RightCellQuery.
Extent
; // relation or extent to group by
464
return leaf.LeftCellWrapper.RightCellQuery.
Extent
as EntitySet;
System\Data\Mapping\ViewGeneration\CellPartitioner.cs (10)
70
EntitySetBase firstCExtent = cell.CQuery.
Extent
;
71
EntitySetBase firstSExtent = cell.SQuery.
Extent
;
74
EntitySetBase secondCExtent = existingCell.CQuery.
Extent
;
75
EntitySetBase secondSExtent = existingCell.SQuery.
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
))
139
EntitySetBase sExtent1 = cell1.SQuery.
Extent
;
140
EntitySetBase sExtent2 = cell2.SQuery.
Extent
;
System\Data\Mapping\ViewGeneration\CellTreeSimplifier.cs (5)
295
extentMap.Add(leafNode.LeftCellWrapper.RightCellQuery.
Extent
, leafNode);
328
extentMap.Add(leafNode.LeftCellWrapper.RightCellQuery.
Extent
, leafNode);
341
EntitySetBase firstExtent = firstNode.LeftCellWrapper.RightCellQuery.
Extent
;
444
if (!query1.
Extent
.Equals(query2.
Extent
))
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (14)
245
builder = new StringBuilder(System.Data.Entity.Strings.ViewGen_Duplicate_CProperties(
Extent
.Name));
292
AssociationSet assocSet =
Extent
as AssociationSet;
330
if(
Extent
is EntitySet)
337
EntitySet rightExtent = rightCellQuery.
Extent
as EntitySet;
340
List<AssociationSet> associations = MetadataHelper.GetAssociationsForEntitySet(rightCellQuery.
Extent
as EntitySet);
344
foreach (var associationCell in associationSets.Where(c => c.GetRightQuery(target).
Extent
.EdmEquals(association)))
465
if (
Extent
is EntitySet)
468
MemberPath prefix = new MemberPath(
Extent
);
470
EntityType entityType = (EntityType)
Extent
.ElementType;
478
AssociationSet relationshipSet = (AssociationSet)
Extent
;
503
if (
Extent
is EntitySet)
506
message = formatEntitySetMessage(keyPropertiesString,
Extent
.Name);
512
message = formatAssociationSetMessage(keyPropertiesString, endName,
Extent
.Name);
611
Debug.Assert(this.
Extent
is AssociationSet);
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (3)
180
if ((cellQuery.
Extent
.EntityContainer.DataSpace == DataSpace.SSpace)
184
this.ViewgenContext.EntityContainerMapping.GetRelationshipSetMappingsFor(this.m_cellWrapper.LeftExtent, cellQuery.
Extent
);
196
ExtentCqlBlock result = new ExtentCqlBlock(cellQuery.
Extent
, cellQuery.SelectDistinctFlag, totalProjectedSlots.ToArray(),
System\Data\Mapping\ViewGeneration\Structures\LeftCellWrapper.cs (2)
156
return m_mergedCells.First().GetLeftQuery(m_viewTarget).
Extent
;
165
EntitySetBase result = m_rightCellQuery.
Extent
;
System\Data\Mapping\ViewGeneration\Validation\BasicCellRelation.cs (6)
60
Debug.Assert(m_cellQuery.
Extent
is EntitySet || m_cellQuery.
Extent
is AssociationSet,
62
if (m_cellQuery.
Extent
is EntitySet)
76
MemberPath prefix = new MemberPath(m_cellQuery.
Extent
);
77
EntityType entityType = (EntityType)m_cellQuery.
Extent
.ElementType;
89
AssociationSet relationshipSet = m_cellQuery.
Extent
as AssociationSet;
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (6)
307
var nonAssociationWrappers = leftCellWrappers.Where(r => !(r.LeftExtent is AssociationSet) && !(r.RightCellQuery.
Extent
is AssociationSet));
312
EntitySetBase rightExtent = firstLeftCWrapper.RightCellQuery.
Extent
;
317
if (!leftCellWrapper.RightCellQuery.
Extent
.EdmEquals(rightExtent))
324
Strings.Viewgen_ErrorPattern_TableMappedToMultipleES(leftCellWrapper.LeftExtent.ToString(), leftCellWrapper.RightCellQuery.
Extent
.ToString(), rightExtent.ToString()),
509
(fragment1.OnlyInputCell.CQuery.
Extent
is AssociationSet ||
510
fragment2.OnlyInputCell.CQuery.
Extent
is AssociationSet))
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (18)
272
if (cell.SQuery.
Extent
.Equals(ChildTable) == false)
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);
535
if (cQuery.
Extent
is AssociationSet)
548
EntitySet entitySet = cQuery.
Extent
as EntitySet;
572
if (cell.CQuery.
Extent
is EntitySet)
577
AssociationSet relationSet = (AssociationSet)cell.CQuery.
Extent
;
652
if (cell.SQuery.
Extent
.Equals(ChildTable))
657
if (cell.SQuery.
Extent
.Equals(ParentTable))
777
childCell.CQuery.
Extent
.Name,
781
errorParentCell.CQuery.
Extent
.Name);
795
AssociationSet set = cell.CQuery.
Extent
as AssociationSet;
861
EntitySetBase table = cell.SQuery.
Extent
;
System\Data\Mapping\ViewGeneration\Validator.cs (8)
207
ExtentPair pair = new ExtentPair(cKeyConstraint.Cell.CQuery.
Extent
, cKeyConstraint.Cell.SQuery.
Extent
);
287
var cExtent = cell.CQuery.
Extent
;
288
var sExtent = cell.SQuery.
Extent
;
292
.Where(otherCell => otherCell.CQuery.
Extent
== cExtent && otherCell.SQuery.
Extent
== sExtent);
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)
63
Debug.Assert(extent.Equals(cell.GetLeftQuery(viewTarget).
Extent
));
System\Data\Mapping\ViewGeneration\ViewGenerator.cs (2)
392
var cellsForExtent = m_cellGroup.Where(c => c.GetLeftQuery(viewTarget).
Extent
== extent);
502
extentCellMap.Add(cellQuery.
Extent
, cell);
System\Data\Mapping\ViewGeneration\ViewgenGatekeeper.cs (3)
232
mappedExtents.Add(cell.CQuery.
Extent
);
235
container = cell.CQuery.
Extent
.EntityContainer;
303
if (cell.GetLeftQuery(ViewTarget.QueryView).
Extent
.Equals(entity))