1 write to ElementType
System.Data.Entity (1)
System\Data\Metadata\Edm\EntitySetBase.cs (1)
66this.ElementType = entityType;
75 references to ElementType
System.Data.Entity (72)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (3)
812return ArgumentValidation.CreateCollectionResultType(entitySet.ElementType); 1933Debug.Assert(entitySet.ElementType != null, "EntitySetBase constructor allowed null container?"); 1935if(!CheckDataSpace(entitySet.ElementType))
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
710Dump(e.Target.ElementType, "TargetElementType");
System\Data\Common\EntityRecordInfo.cs (2)
101!object.ReferenceEquals(RecordType.EdmType, entitySet.ElementType) && 102!entitySet.ElementType.IsBaseTypeOf(RecordType.EdmType))
System\Data\Common\Internal\Materialization\Shaper.cs (1)
469if ((EdmType)entitySetBase.ElementType == associationType)
System\Data\Common\Utils\MetadataHelper.cs (1)
628if (Object.ReferenceEquals(extent.ElementType, associationType))
System\Data\EntityKey.cs (12)
216_keyNames = entitySet.ElementType.KeyMemberNames; // using EntitySetBase avoids an (EntityType) cast that EntitySet encoure 236_keyNames = entitySet.ElementType.KeyMemberNames; // using EntitySetBase avoids an (EntityType) cast that EntitySet encoure 723if (((EntitySetBase)entitySet).ElementType.KeyMembers.Count != numKeyMembers) 743EdmMember singletonKeyMember = ((EntitySetBase)entitySet).ElementType.KeyMembers[0]; 757EdmMember keyMember = ((EntitySetBase)entitySet).ElementType.KeyMembers[i]; 942int numExpectedKeyValues = ((EntitySetBase)entitySet).ElementType.KeyMembers.Count; 943keyNames = ((EntitySetBase)entitySet).ElementType.KeyMemberNames; 1005ReadOnlyMetadataCollection<EdmMember> keyMembers = ((EntitySetBase)entitySet).ElementType.KeyMembers; 1054EdmMember keyField = ((EntitySetBase)entitySet).ElementType.KeyMembers[i]; 1164Debug.Assert(entitySet.ElementType.KeyMembers.Count == 1, "For a singleton key, the number of key fields must be exactly 1."); 1172Debug.Assert(entitySet.ElementType.KeyMembers.Count > 1, "For a composite key, the number of key fields should be greater than 1."); 1173Debug.Assert(entitySet.ElementType.KeyMembers.Count == _compositeKeyValues.Length, "Incorrect number of values specified to composite key.");
System\Data\Mapping\StorageEntitySetMapping.cs (2)
144Debug.Assert(modificationFunctionMapping.EntityType.Equals(this.Set.ElementType) || 145Helper.IsSubtypeOf(modificationFunctionMapping.EntityType, this.Set.ElementType),
System\Data\Mapping\StorageMappingItemCollection.cs (1)
801setMapping.Set.ElementType,
System\Data\Mapping\StorageMappingItemLoader.cs (7)
900Set<EdmType> unmappedTypes = new Set<EdmType>(MetadataHelper.GetTypeAndSubtypesOf(setMapping.Set.ElementType, EdmItemCollection, false /*includeAbstractTypes*/)); 1040EntityType rootEntityType = (EntityType)entitySetMapping.Set.ElementType; 1300EntityType rootEntityType = (EntityType)setMapping.Set.ElementType; 1332if (includeSubtypes && setMapping.Set.ElementType.EdmEquals(entityType)) 2561if ((!(associationSetMapping.Set.ElementType.Equals(associationType)))) 2564associationSetMapping.Set.ElementType.FullName, associationSetMapping.Set.Name), 3809StorageModificationFunctionMapping mapping = new StorageModificationFunctionMapping(entitySet, entitySet.ElementType, m_function, parameters, rowsAffectedParameter, null);
System\Data\Mapping\Update\Internal\FunctionMappingTranslator.cs (1)
92on end.CorrespondingAssociationEndMember.DeclaringType equals candidateEntry.EntitySet.ElementType
System\Data\Mapping\Update\Internal\KeyManager.cs (1)
307var keyMembers = addedEntry.EntitySet.ElementType.KeyMembers;
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
1118changeNode = new ChangeNode(TypeUsage.Create(extent.ElementType));
System\Data\Mapping\ViewGeneration\GeneratedView.cs (2)
116if ((queryResultType == null) || (!setMapping.Set.ElementType.IsAssignableFrom(queryResultType.TypeUsage.EdmType))) 302bool ofTypeView = m_type != m_extent.ElementType;
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (1)
38CreateVariableConstraintsRecursion(extent.ElementType, new MemberPath(extent), domainMap, edmItemCollection);
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (1)
470EntityType entityType = (EntityType)Extent.ElementType;
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
245if (thisExtent.ElementType.IsAssignableFrom(fromEndEntityType))
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (6)
226return m_extent.ElementType; 287EntityType entitySetType = m_extent.ElementType as EntityType; 348identifiers.AddIdentifier(m_extent.ElementType.Name); 471EdmType prevType = m_extent.ElementType; 558extentPath.GetMembers(extentPath.Extent.ElementType, null /* isScalar */, null /* isConditional */, true /* isPartOfKey */, domainMap)); 810EntityTypeBase type = m_extent.ElementType;
System\Data\Mapping\ViewGeneration\Validation\BasicCellRelation.cs (1)
77EntityType entityType = (EntityType)m_cellQuery.Extent.ElementType;
System\Data\Mapping\ViewGeneration\Validation\ErrorPatternMatcher.cs (1)
89Set<EdmType> unmapepdTypesInExtent = new Set<EdmType>(MetadataHelper.GetTypeAndSubtypesOf(m_viewgenContext.Extent.ElementType, m_viewgenContext.EdmItemCollection, false /*isAbstract*/));
System\Data\Mapping\ViewGeneration\Validation\ViewKeyConstraint.cs (4)
111ExtentKey tableKey = ExtentKey.GetPrimaryKeyForEntityType(tablePrefix, (EntityType)table.ElementType); 115cSetKey = ExtentKey.GetPrimaryKeyForEntityType(cSetPrefix, (EntityType)cSet.ElementType); 119cSetKey = ExtentKey.GetKeyForRelationType(cSetPrefix, (AssociationType)cSet.ElementType); 159ExtentKey tableKey = ExtentKey.GetPrimaryKeyForEntityType(tablePrefix, (EntityType)table.ElementType);
System\Data\Mapping\ViewGeneration\ViewgenContext.cs (1)
251EntityTypeBase extentType = m_extent.ElementType;
System\Data\Mapping\ViewGeneration\ViewGenerator.cs (3)
357foreach (EdmType type in MetadataHelper.GetTypeAndSubtypesOf(extent.ElementType, m_entityContainerMapping.StorageMappingItemCollection.EdmItemCollection, false /*includeAbstractTypes*/)) 359if (m_config.IsViewTracing && false == type.Equals(extent.ElementType)) 369queryRewriter = GenerateViewsForExtentAndType(extent.ElementType, context, identifiers, views, ViewGenMode.OfTypeViews);
System\Data\Metadata\Edm\EntitySet.cs (1)
61return (EntityType)base.ElementType;
System\Data\Metadata\Edm\EntitySetBase.cs (1)
205EntityTypeBase elementType = ElementType;
System\Data\Metadata\Edm\RelationshipSet.cs (1)
46return (RelationshipType)base.ElementType;
System\Data\Metadata\MetadataWorkspace.cs (3)
1451if (!entitySet.ElementType.IsAssignableFrom(entityType)) 1456throw EntityUtil.TypeNotInAssociationSet(entitySet.Name, entitySet.ElementType.FullName, entityType.FullName); 1460throw EntityUtil.TypeNotInEntitySet(entitySet.Name, entitySet.ElementType.FullName, entityType.FullName);
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
2433if ((EdmType)entitySetBase.ElementType == relationshipType)
System\Data\Objects\ObjectContext.cs (1)
1338if (es.BuiltInTypeKind == BuiltInTypeKind.EntitySet && es.ElementType == entityEdmType)
System\Data\Query\InternalTrees\Command.cs (1)
320return new TableMD(TypeUsage.Create(extent.ElementType), extent);
System\Data\Query\PlanCompiler\PreProcessor.cs (5)
314TypeSemantics.IsSubTypeOf(entitySet.ElementType, typeFilter.IsOfType.EdmType)) 332EntityTypeBase requiredType = scanTableOp.Table.TableMetadata.Extent.ElementType; 422rootEntityType = entitySet.ElementType; 585if ((ofType != null) && !entitySet.ElementType.EdmEquals(ofType.EdmType)) 2079TypeUsage elementType = TypeUsage.Create(op.Table.TableMetadata.Extent.ElementType);
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (1)
350md.EntityTypeBase rootType = GetRootType(set.ElementType);
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (3)
115EntityType tableType = (EntityType)((DbScanExpression)tree.Target.Expression).Target.ElementType; 248foreach (EdmMember keyMember in ((DbScanExpression)tree.Target.Expression).Target.ElementType.KeyMembers) 378foreach (EdmMember keyMember in table.ElementType.KeyMembers)
System.Data.Entity.Design (1)
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (1)
692targetSchemaNamespace = type.ElementType.NamespaceName;
System.Data.Services.Design (2)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (2)
539namespaceName = baseEntitySet.ElementType.NamespaceName; 847x.ElementType == entityType))