4 writes to EntityKey
System.Data.Services (2)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (2)
2431
((EntityReference)relatedEnd).
EntityKey
= null;
2447
((EntityReference)relatedEnd).
EntityKey
= null;
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceReferenceGroup.cs (2)
117
reference.
EntityKey
= null;
121
reference.
EntityKey
= new EntityKey(EntityDataSourceUtil.GetQualifiedEntitySetName(End.EntitySet), (IEnumerable<KeyValuePair<string, object>>)newKeyValues);
17 references to EntityKey
System.Data.Entity (14)
System\Data\Common\Internal\Materialization\Shaper.cs (1)
513
forceToTrue &= reference.
EntityKey
== null;
System\Data\Objects\DataClasses\EntityReference.cs (7)
161
if (value != null && value ==
EntityKey
&& (ReferenceValue.Entity != null || (ReferenceValue.Entity == null && !forceFixup)))
330
return this.
EntityKey
;
350
return
EntityKey
?? _cachedForeignKey;
368
if (
EntityKey
!= null)
370
yield return
EntityKey
;
405
Debug.Assert(CachedForeignKey != null ||
EntityKey
== null, "CachedForeignKey should not be null if EntityKey is not null.");
432
(
EntityKey
== null && targetEntity.ObjectStateEntry.State == EntityState.Deleted || // setting to a deleted principle
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
1821
principalKey = ((EntityReference)this).
EntityKey
;
System\Data\Objects\DataClasses\RelationshipManager.cs (2)
1035
if (reference != null && reference.
EntityKey
!= null)
1037
reference.DetachedEntityKey = reference.
EntityKey
;
System\Data\Objects\EntityEntry.cs (3)
3590
if (replaceExistingRef && (relatedEnd.ReferenceValue.Entity != null || relatedEnd.
EntityKey
!= null))
3662
principalKey = relatedEnd.
EntityKey
?? relatedEnd.CachedValue.ObjectStateEntry.EntityKey;
3739
EntityKey principalKey = reference.
EntityKey
;
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
2435
EntityKey key = ((EntityReference)relatedEnd).
EntityKey
;
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceReferenceGroup.cs (2)
72
EntityKey originalEntityKeys = reference.
EntityKey
;
127
EntityKey key = GetRelatedReference(entity).
EntityKey
;