9 instantiations of RefType
System.Data.Entity (9)
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (1)
120retType = new RefType(mappedEntityType);
System\Data\EntityModel\SchemaObjectModel\ReferenceTypeElement.cs (1)
85RefType refType = new RefType(entityType);
System\Data\EntityModel\SchemaObjectModel\RowTypePropertyElement.cs (1)
217_typeUsage = TypeUsage.Create(new RefType(entityType));
System\Data\Mapping\DefaultObjectMappingItemCollection.cs (2)
315clrType = new RefType((EntityType)ConvertCSpaceToOSpaceType(((RefType)cdmType).ElementType)); 354cdmType = new RefType((EntityType)(ConvertOSpaceToCSpaceType(((RefType)clrType).ElementType)));
System\Data\Metadata\Converter.cs (1)
1220usage = TypeUsage.Create(new RefType(edmType as EntityType));
System\Data\Metadata\Edm\EntityType.cs (1)
178Interlocked.CompareExchange<RefType>(ref _referenceType, new RefType(this), null);
System\Data\Metadata\TypeHelpers.cs (1)
394return new RefType((EntityType)entityType);
System\Data\Metadata\TypeSemantics.cs (1)
928commonType = new RefType((EntityType)commonType);
119 references to RefType
System.Data.Entity (104)
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)
1202RefType refType = null; 1203if (!TypeHelpers.TryGetEdmType<RefType>(argument.ResultType, out refType) || null == refType) 1661EntityTypeBase expectedSourceType = TypeHelpers.GetEdmType<RefType>(relatedRef.SourceEnd.TypeUsage).ElementType; 1976return CheckDataSpace(((RefType)item).ElementType);
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (2)
116RefType refType = (RefType)type;
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 (3)
309RefType refType = type.EdmType as RefType; 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\EntitySql\SemanticAnalyzer.cs (5)
1574var refType = targetEntityRef.ResultType.EdmType as RefType; 1691var sourceRefType = sourceEntityRef.ResultType.EdmType as RefType; 1698sourceRefType = (RefType)sourceEntityRef.ResultType.EdmType;
System\Data\Common\Internal\Materialization\Shaper.cs (1)
676EdmType expectedSourceType = ((RefType)sourceEnd.TypeUsage.EdmType).ElementType;
System\Data\Common\Utils\MetadataHelper.cs (7)
224RefType refType = (RefType)end.TypeUsage.EdmType; 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\EntityModel\SchemaObjectModel\ReferenceTypeElement.cs (1)
85RefType refType = new RefType(entityType);
System\Data\Mapping\BaseMetadataMappingVisitor.cs (2)
238Visit((RefType)edmType); 290protected virtual void Visit(RefType refType)
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\MetadataMappingHasherVisitor.cs (1)
578protected override void Visit(RefType refType)
System\Data\Mapping\StorageMappingItemLoader.cs (4)
2850RefType refType = (RefType)containerType; 3142RefType endRef = end.TypeUsage.EdmType as RefType;
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)
349RefType endType = (RefType)role.TypeUsage.EdmType;
System\Data\Mapping\ViewGeneration\CqlGenerator.cs (2)
408RefType refType = edmType as RefType;
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 (3)
477RefType prevRefType; 480prevRefType = (RefType)prevType; 573((RefType)edmMember.TypeUsage.EdmType).ElementType,
System\Data\Mapping\ViewGeneration\Structures\MemberProjectionIndex.cs (2)
194memberType is RefType, // for association ends 246structuralMember.TypeUsage.EdmType is RefType, // for association ends
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\AssociationEndMember.cs (1)
31RefType endRefType,
System\Data\Metadata\Edm\EntityType.cs (3)
72private RefType _referenceType; 174public RefType GetReferenceType() 178Interlocked.CompareExchange<RefType>(ref _referenceType, new RefType(this), null);
System\Data\Metadata\Edm\RelationshipEndMember.cs (2)
31RefType endRefType, 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)
195ValidateRefType((RefType)item, errors, validatedItems); 478private void ValidateRefType(RefType item, List<EdmItemError> errors, HashSet<MetadataItem> 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 (4)
392internal static RefType CreateReferenceType(EntityTypeBase entityType) 575return TypeUsage.Create(((RefType)type.EdmType).ElementType); 622RefType refType; 623if (TryGetEdmType<RefType>(type, out refType) &&
System\Data\Metadata\TypeSemantics.cs (6)
830return TryGetCommonType((RefType)edmType1, 831(RefType)edmType2, 919private static bool TryGetCommonType(RefType refType1, RefType reftype2, out EdmType 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 (3)
783RefType referenceType = association.AssociationEndMembers[0].TypeUsage.EdmType as RefType; 790referenceType = association.AssociationEndMembers[1].TypeUsage.EdmType as RefType;
System\Data\Objects\ELinq\ExpressionConverter.cs (4)
1191RefType leftRefType = left.ResultType.EdmType as RefType; 1192RefType rightRefType = right.ResultType.EdmType as RefType;
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\NominalTypeEliminator.cs (2)
517md.RefType refType = null; 518if (TypeHelpers.TryGetEdmType<md.RefType>(currentType, out refType))
System\Data\Query\PlanCompiler\StructuredTypeInfo.cs (6)
511md.RefType refType; 520else if (TypeHelpers.TryGetEdmType<md.RefType>(type, out refType)) 673md.RefType refType = typeInfo.Type.EdmType as md.RefType; 837md.RefType refType; 838if (TypeHelpers.TryGetEdmType<md.RefType>(typeInfo.Type, out refType))
System\Data\Query\PlanCompiler\TypeInfo.cs (2)
325md.RefType refType = null; 326if (TypeHelpers.TryGetEdmType<md.RefType>(m_type, out refType))
System.Data.Entity.Design (9)
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\Entity\Design\EntityStoreSchemaGenerator.cs (1)
990RefType refType = type.GetReferenceType();
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;