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