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