2 implementations of IdentityType
System.Data.Entity (2)
System\Data\Objects\Internal\BaseEntityWrapper.cs (1)
202
public Type
IdentityType
System\Data\Objects\Internal\NullEntityWrapper.cs (1)
149
public Type
IdentityType
43 references to IdentityType
System.Data.Entity (43)
System\Data\Common\Internal\Materialization\Shaper.cs (5)
204
if (typeof(TEntity) != existingEntry.WrappedEntity.
IdentityType
)
206
throw EntityUtil.RecyclingEntity(existingEntry.EntityKey, typeof(TEntity), existingEntry.WrappedEntity.
IdentityType
);
678
if (!this.Context.Perspective.TryGetType(wrappedSource.
IdentityType
, out entityTypeUsage) ||
749
if (clrType != existingEntry.WrappedEntity.
IdentityType
)
751
throw EntityUtil.RecyclingEntity(existingEntry.EntityKey, clrType, existingEntry.WrappedEntity.
IdentityType
);
System\Data\Objects\DataClasses\EntityReference.cs (4)
478
StateManagerTypeMetadata principalTypeMetadata = stateManager.GetOrAddStateManagerTypeMetadata(principalEntity.
IdentityType
, principalEntitySet);
481
StateManagerTypeMetadata dependentTypeMetadata = stateManager.GetOrAddStateManagerTypeMetadata(dependentEntity.
IdentityType
, dependentEntitySet);
579
StateManagerTypeMetadata dependentTypeMetadata = stateManager.GetOrAddStateManagerTypeMetadata(dependentEntity.
IdentityType
, dependentEntitySet);
661
StateManagerTypeMetadata dependentTypeMetadata = stateManager.GetOrAddStateManagerTypeMetadata(WrappedOwner.
IdentityType
, dependentEntitySet);
System\Data\Objects\DataClasses\RelatedEnd.cs (3)
1591
_context.GetTypeUsage(otherRelatedEnd.WrappedOwner.
IdentityType
);
2553
EntityType entityType = _wrappedOwner.Context.MetadataWorkspace.GetItem<EntityType>(_wrappedOwner.
IdentityType
.FullName, DataSpace.OSpace);
2603
RelationshipManager.TryGetRelationshipType(WrappedOwner, WrappedOwner.
IdentityType
, relationshipName, out associationType) ||
System\Data\Objects\DataClasses\RelationshipManager.cs (11)
379
EntityType entityType = wrappedOwner.Context.MetadataWorkspace.GetItem<EntityType>(wrappedOwner.
IdentityType
.FullName, DataSpace.OSpace);
422
if (!TryGetRelationshipType(wrappedOwner, wrappedOwner.
IdentityType
, relationshipName, out associationType))
496
if (!(sourceType.IsAssignableFrom(wrappedOwner.
IdentityType
)))
500
throw EntityUtil.OwnerIsNotSourceType(wrappedOwner.
IdentityType
.FullName, sourceType.FullName, sourceEnd.Name, relationshipName);
543
AssociationType relationship = GetRelationshipType(wrappedOwner.
IdentityType
, relationshipName);
597
AssociationType relationship = GetRelationshipType(wrappedOwner.
IdentityType
, relationshipName);
621
string identityName = WrappedOwner.
IdentityType
.FullName;
630
Dictionary<string, EdmType> types = ObjectItemCollection.LoadTypesExpensiveWay(WrappedOwner.
IdentityType
.Assembly);
669
mappings.TryGetMap(WrappedOwner.
IdentityType
.FullName, DataSpace.OSpace, out map))
730
return EntityUtil.ProxyMetadataIsUnavailable(wrappedOwner.
IdentityType
, argException);
1010
foreach (AssociationEndMember endMember in GetAllTargetEnds(wrappedOwner.
IdentityType
))
System\Data\Objects\EntityEntry.cs (6)
91
(WrappedEntity.
IdentityType
!= Entity.GetType() &&
1602
if (WrappedEntity.
IdentityType
!= Entity.GetType() && // Is a proxy
3352
if (this.WrappedEntity.
IdentityType
!= wrappedCurrentEntity.
IdentityType
)
3380
if (this.WrappedEntity.
IdentityType
!= wrappedOriginalEntity.
IdentityType
)
System\Data\Objects\Internal\EntityWithChangeTrackerStrategy.cs (1)
58
bool isProxy = entry.WrappedEntity.
IdentityType
!= _entity.GetType();
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (1)
111
return relatedEnd.WrappedOwner.
IdentityType
;
System\Data\Objects\ObjectContext.cs (7)
556
this.ValidateEntitySet(entitySet, wrappedEntity.
IdentityType
);
627
MetadataWorkspace.ImplicitLoadAssemblyForType(wrappedEntity.
IdentityType
, null);
894
MetadataWorkspace.ImplicitLoadAssemblyForType(wrappedEntity.
IdentityType
, null);
939
MetadataWorkspace.ImplicitLoadAssemblyForType(wrappedOriginalEntity.
IdentityType
, null);
968
if (ose.WrappedEntity.
IdentityType
!= wrappedOriginalEntity.
IdentityType
)
1008
MetadataWorkspace.ImplicitLoadAssemblyForType(wrappedEntity.
IdentityType
, null);
System\Data\Objects\ObjectStateManager.cs (5)
309
var identityType = wrappedEntity.
IdentityType
;
341
StateManagerTypeMetadata typeMetadata = GetOrAddStateManagerTypeMetadata(wrappedObject.
IdentityType
, entitySet);
648
StateManagerTypeMetadata typeMetadata = GetOrAddStateManagerTypeMetadata(wrappedEntity.
IdentityType
, (EntitySet)keyEntry.EntitySet);
1418
StateManagerTypeMetadata typeMetadata = GetOrAddStateManagerTypeMetadata(wrappedObject.
IdentityType
, entitySet);
1479
StateManagerTypeMetadata typeMetadata = GetOrAddStateManagerTypeMetadata(wrappedEntity.
IdentityType
, entitySetForType);