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