2 implementations of EntityKey
System.Data.Entity (2)
System\Data\Objects\Internal\BaseEntityWrapper.cs (1)
216public abstract EntityKey EntityKey { get; set; }
System\Data\Objects\Internal\NullEntityWrapper.cs (1)
78public EntityKey EntityKey
8 writes to EntityKey
System.Data.Entity (8)
System\Data\Objects\EntityEntry.cs (3)
1666_wrappedEntity.EntityKey = null; 2469existingWrappedEntity.EntityKey = key; 2882_wrappedEntity.EntityKey = null;
System\Data\Objects\Internal\EntityWrapperFactory.cs (2)
64wrappedEntity.EntityKey = key; 301wrapper.EntityKey = context.ObjectStateManager.CreateEntityKey(entitySet, wrapper.Entity);
System\Data\Objects\ObjectContext.cs (1)
1125wrappedEntity.EntityKey = key;
System\Data\Objects\ObjectStateManager.cs (2)
418wrappedObject.EntityKey = entityKey; 2126entry.WrappedEntity.EntityKey = value; // user will have control
56 references to EntityKey
System.Data.Entity (56)
System\Data\Common\EntityUtil.cs (1)
1494if (wrappedEntity.EntityKey != key)
System\Data\Common\Internal\Materialization\Shaper.cs (6)
270EntityKey sourceKey = wrappedSource.EntityKey; 290EntityKey sourceKey = wrappedEntity.EntityKey; 438if (wrappedEntity.EntityKey == null) 453var entitySet = wrappedEntity.EntityKey.GetEntitySet(this.Workspace); 531return HandleEntity<TEntity>(wrappedEntity, wrappedEntity.EntityKey, entitySet); 725EntityKey sourceKey = wrappedSource.EntityKey;
System\Data\Objects\DataClasses\EntityReference.cs (5)
101attachedKey = CachedValue.EntityKey; 130EntityKey ownerKey = WrappedOwner.EntityKey; 398EntityKey ownerKey = WrappedOwner.EntityKey; 469bool isUnchangedDependent = (object)WrappedOwner.EntityKey != null && 470!WrappedOwner.EntityKey.IsTemporary &&
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (4)
113ValidateOwnerWithRIConstraints(value, value == EntityWrapperFactory.NullWrapper ? null : value.EntityKey, checkBothEnds: true); 194EntityKey sourceKey = WrappedOwner.EntityKey; 362EntityKey ownerKey = WrappedOwner.EntityKey; 434EntityKey ownerKey = WrappedOwner.EntityKey;
System\Data\Objects\DataClasses\RelatedEnd.cs (18)
384EntityKey key = _wrappedOwner.EntityKey; 553value = _wrappedOwner.EntityKey.EntityKeyValues.Single(ekv => ekv.Key == parameterMember.Name).Value; 797EntityKey sourceKey = _wrappedOwner.EntityKey; 1138EntityKey key = wrappedTarget.EntityKey; 1236this.WrappedOwner.EntityKey != null && 1237!this.WrappedOwner.EntityKey.IsTemporary && IsDependentEndOfReferentialConstraint(false)) 1645EntityKey targetKey = wrappedEntity.EntityKey; 1783EntityKey entityKey = wrappedEntity.EntityKey; 1784EntityKey ownerKey = _wrappedOwner.EntityKey; 1893EntityKey principalKey = wrappedRelatedEntity.EntityKey; 2123EntityKey targetKey = wrappedEntity.EntityKey; 2154EntityKey ownerKey = _wrappedOwner.EntityKey; 2155EntityKey entityKey = wrappedEntity.EntityKey; 2244EntityKey ownerKey = wrappedOwner.EntityKey; 2245EntityKey entityKey = wrappedEntity.EntityKey; 2259EntityKey ownerKey = wrappedOwner.EntityKey; 2260EntityKey entityKey = wrappedEntity.EntityKey; 2299EntityKey ownerKey = _wrappedOwner.EntityKey;
System\Data\Objects\DataClasses\RelationshipManager.cs (6)
810ownerKey = wrappedOwner.EntityKey; 994Debug.Assert(wrappedOwner.EntityKey != null, "null entityKey on a attached entity"); 995EntitySet entitySet = wrappedOwner.Context.GetEntitySet(wrappedOwner.EntityKey.EntitySetName, wrappedOwner.EntityKey.EntityContainerName); 1228EntityKey ownerKey = wrappedOwner.EntityKey; 1438EntityKey ownerKey = wrappedOwner.EntityKey;
System\Data\Objects\EntityEntry.cs (2)
3465EntityKey existingPrincipalKey = existingPrincipal.EntityKey; 3754EntityKey principalKey = WrappedEntity.EntityKey;
System\Data\Objects\Internal\EntityWrapperFactory.cs (2)
62if ((object)key != null && (object)wrappedEntity.EntityKey == null) 299if (wrapper.EntityKey == null)
System\Data\Objects\ObjectContext.cs (5)
898EntityKey key = wrappedEntity.EntityKey; 943EntityKey key = wrappedOriginalEntity.EntityKey; 1123if (wrappedEntity.EntityKey != key) 1248EntityKey key = wrappedEntity.EntityKey; 2255EntityKey key = wrappedEntity.EntityKey;
System\Data\Objects\ObjectStateManager.cs (7)
361dataObjectEntityKey = wrappedObject.EntityKey; 941EntityKey targetKey = wrappedRelatedEntity.EntityKey; 1016EntityKey targetKey = wrappedTarget.EntityKey; 2118EntityKey entityKey = entry.WrappedEntity.EntityKey; 3307if (entitySet.Name != entity.EntityKey.EntitySetName) // 3511reference.ReferenceValue.EntityKey.IsTemporary && 3512this.TryGetEntityEntry(reference.ReferenceValue.EntityKey, out relatedEntry) &&