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