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