87 references to ElementType
System.Data.Entity (73)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (1)
768EntityType targetType = (EntityType)TypeHelpers.GetEdmType<RefType>(expression.ResultType).ElementType;
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (4)
1209Debug.Assert(refType.ElementType != null, "RefType constructor allowed null ElementType?"); 1211return CreateResultType(TypeHelpers.CreateKeyRowType(refType.ElementType)); 1661EntityTypeBase expectedSourceType = TypeHelpers.GetEdmType<RefType>(relatedRef.SourceEnd.TypeUsage).ElementType; 1976return CheckDataSpace(((RefType)item).ElementType);
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (2)
117EntityType mappedEntityType = (EntityType)this.VisitType(refType.ElementType); 118if (!object.ReferenceEquals(refType.ElementType, mappedEntityType))
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
530_key.Append(TypeHelpers.GetEdmType<RefType>(e.ResultType).ElementType.FullName);
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (2)
324AppendFullName(text, refType.ElementType); 795AppendFullName(retNode.Text, TypeHelpers.GetEdmType<RefType>(e.ResultType).ElementType);
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (2)
161EntityType requiredSourceNavType = (EntityType)TypeHelpers.GetEdmType<RefType>(dependentSetEnd.CorrespondingAssociationEndMember.TypeUsage).ElementType; 282EntityType principalEntityType = (EntityType)TypeHelpers.GetEdmType<RefType>(fkConstraint.FromRole.TypeUsage).ElementType;
System\Data\Common\CommandTrees\ValueExpressions.cs (2)
599EntityTypeBase endType = TypeHelpers.GetEdmType<RefType>(targetEnd.TypeUsage).ElementType; 600EntityTypeBase targetType = TypeHelpers.GetEdmType<RefType>(targetEntityRef.ResultType).ElementType;
System\Data\Common\Internal\Materialization\Shaper.cs (1)
676EdmType expectedSourceType = ((RefType)sourceEnd.TypeUsage.EdmType).ElementType;
System\Data\Common\Utils\MetadataHelper.cs (6)
225EntityTypeBase endType = refType.ElementType; 360type = ((RefType)type).ElementType; 411type = ((RefType)type).ElementType; 509EntityType thisEndsEntityType = (EntityType)((RefType)thisEnd.TypeUsage.EdmType).ElementType; 522otherEndType = (EntityType)((RefType)((AssociationEndMember)constraint.FromRole).TypeUsage.EdmType).ElementType; 527otherEndType = (EntityType)((RefType)((AssociationEndMember)constraint.ToRole).TypeUsage.EdmType).ElementType;
System\Data\Mapping\BaseMetadataMappingVisitor.cs (1)
293Visit(refType.ElementType);
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (6)
315clrType = new RefType((EntityType)ConvertCSpaceToOSpaceType(((RefType)cdmType).ElementType)); 354cdmType = new RefType((EntityType)(ConvertOSpaceToCSpaceType(((RefType)clrType).ElementType))); 554edmMemberType = ((RefType)edmMember.TypeUsage.EdmType).ElementType; 555objectMemberType = ((RefType)objectMember.TypeUsage.EdmType).ElementType; 773LoadTypeMapping(((RefType)edmEnd.TypeUsage.EdmType).ElementType, 774((RefType)objectEnd.TypeUsage.EdmType).ElementType, ocItemCollection, typeMappings);
System\Data\Mapping\StorageMappingItemLoader.cs (2)
2851((EntityType)refType.ElementType).Properties.TryGetValue(propertyName, false /*ignoreCase*/, out member); 3144EntityTypeBase containerType = endRef.ElementType;
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (1)
172EntityType entityType = (EntityType)((RefType)end.TypeUsage.EdmType).ElementType;
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (2)
350Debug.Assert(BuiltInTypeKind.EntityType == endType.ElementType.BuiltInTypeKind, 352EntityType entityType = (EntityType)endType.ElementType;
System\Data\Mapping\ViewGeneration\CqlGenerator.cs (1)
411EntityTypeBase refElementType = refType.ElementType;
System\Data\Mapping\ViewGeneration\QueryRewriting\FragmentQueryKB.cs (1)
56EntityType type = (EntityType)((RefType)endMember.TypeUsage.EdmType).ElementType;
System\Data\Mapping\ViewGeneration\Structures\Domain.cs (1)
161type = ((RefType)type).ElementType;
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (2)
219EntityType toEndEntityType = (EntityType)((RefType)(toEnd.TypeUsage.EdmType)).ElementType; 220EntityType fromEndEntityType = (EntityType)(((RefType)fromEnd.TypeUsage.EdmType).ElementType);
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (2)
481prevStructuralType = prevRefType.ElementType; 573((RefType)edmMember.TypeUsage.EdmType).ElementType,
System\Data\Mapping\ViewGeneration\Structures\TypeConstant.cs (2)
107EntityType refEntityType = (EntityType)(((RefType)outputMember.EdmType).ElementType); 157EntityType refEntityType = (EntityType)(((RefType)outputMember.EdmType).ElementType);
System\Data\Metadata\Converter.cs (2)
508EntityTypeBase fromEntityType = ((RefType)fromMember.TypeUsage.EdmType).ElementType; 509EntityTypeBase toEntityType = ((RefType)toMember.TypeUsage.EdmType).ElementType;
System\Data\Metadata\Edm\RelationshipEndMember.cs (1)
82return (EntityType)((RefType)TypeUsage.EdmType).ElementType;
System\Data\Metadata\Edm\TypeUsage.cs (1)
432System.Diagnostics.Debug.Assert(((RefType)edmType).ElementType.DataSpace == DataSpace.CSpace);
System\Data\Metadata\EdmValidator.cs (2)
489if (item.ElementType == null) 495InternalValidate(item.ElementType, errors, validatedItems);
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (2)
581((RefType)navigationProperty.FromEndMember.TypeUsage.EdmType).ElementType.ClrType != declaringType.ClrType) 588((RefType)navigationProperty.FromEndMember.TypeUsage.EdmType).ElementType.ClrType), navigationProperty));
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (2)
552EntityTypeBase missingType = cspaceProperty.RelationshipType.RelationshipEndMembers.Select(e => ((RefType)e.TypeUsage.EdmType).ElementType).First(e => e != cspaceType); 716return ((RefType)relationshipEndMember.TypeUsage.EdmType).ElementType;
System\Data\Metadata\TypeHelpers.cs (3)
575return TypeUsage.Create(((RefType)type.EdmType).ElementType); 624Helper.IsEntityType(refType.ElementType)) 626referencedEntityType = (EntityType)refType.ElementType;
System\Data\Metadata\TypeSemantics.cs (6)
921Debug.Assert(refType1.ElementType != null && reftype2.ElementType != null); 923if (!TryGetCommonType(refType1.ElementType, reftype2.ElementType, out commonType)) 1061return ((RefType)fromType.EdmType).ElementType.EdmEquals(((RefType)toType.EdmType).ElementType);
System\Data\Objects\DataClasses\EntityCollection.cs (1)
199EntityType associationEndType = (EntityType)((RefType)((AssociationEndMember)this.ToEndMember).TypeUsage.EdmType).ElementType;
System\Data\Objects\DataClasses\RelationshipManager.cs (2)
784if (referenceType != null && referenceType.ElementType.ClrType.IsAssignableFrom(entityClrType)) 791if (referenceType != null && referenceType.ElementType.ClrType.IsAssignableFrom(entityClrType))
System\Data\Objects\ELinq\ExpressionConverter.cs (2)
1193throw EntityUtil.NotSupported(Strings.ELinq_UnsupportedRefComparison(leftRefType.ElementType.FullName, rightRefType.ElementType.FullName));
System\Data\Objects\Internal\ObjectSpanRewriter.cs (1)
700EntityType fromEntityType = (EntityType)((RefType)fromEnd.TypeUsage.EdmType).ElementType;
System\Data\Query\InternalTrees\RelPropertyHelper.cs (1)
137EntityTypeBase entityType = (EntityTypeBase)((RefType)fromEnd.TypeUsage.EdmType).ElementType;
System\Data\Query\PlanCompiler\ColumnMapProcessor.cs (1)
440md.EntityType entityType = (md.EntityType)(TypeHelpers.GetEdmType<md.RefType>(typeInfo.Type).ElementType);
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (3)
522md.EntityType entityType = refType.ElementType as md.EntityType; 676entityType = refType.ElementType as md.EntityType; 848typeMembers = refType.ElementType.KeyMembers;
System\Data\Query\PlanCompiler\TypeInfo.cs (1)
328entityType = refType.ElementType;
System.Data.Entity.Design (8)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
321string typeName = GetFullName(((RefType)end.TypeUsage.EdmType).ElementType);
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (2)
232return ((RefType)constraint0.ToRole.TypeUsage.EdmType).ElementType == _storeEntitySet.ElementType && ((RefType)constraint1.ToRole.TypeUsage.EdmType).ElementType == _storeEntitySet.ElementType;
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (3)
1053EntityType entityType = (EntityType)((RefType)from.TypeUsage.EdmType).ElementType; 1087Debug.Assert(((RefType)storeEndMember.TypeUsage.EdmType).ElementType.BuiltInTypeKind == BuiltInTypeKind.EntityType, "the ref is not holding on to an EntityType"); 1089EntityType storeEntityType = ((EntityType)((RefType)storeEndMember.TypeUsage.EdmType).ElementType);
System\Data\EntityModel\Emitters\AssociationTypeEmitter.cs (1)
57return new CodeTypeOfExpression(Generator.GetFullyQualifiedTypeReference(((RefType)end.TypeUsage.EdmType).ElementType));
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
331EntityTypeBase type = ((RefType)endMember.TypeUsage.EdmType).ElementType;
System.Data.Services (4)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (4)
149EntityType targetEntityType = (EntityType)((RefType)sourceNavigationProperty.ToEndMember.TypeUsage.EdmType).ElementType; 1913xmlWriter.WriteAttributeString(XmlConstants.Type, ((RefType)end.TypeUsage.EdmType).ElementType.FullName); 2595EdmType targetType = ((RefType)((NavigationProperty)member).ToEndMember.TypeUsage.EdmType).ElementType; 2620EdmType endType = ((RefType)member.TypeUsage.EdmType).ElementType;
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
328EntityTypeBase type = ((RefType)endMember.TypeUsage.EdmType).ElementType;
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
864EntityType entityType = (EntityType)((RefType)end.TypeUsage.EdmType).ElementType;