10 writes to DetachedEntityKey
System.Data.Entity (10)
System\Data\Objects\DataClasses\EntityReference.cs (3)
189
DetachedEntityKey
= null;
262
DetachedEntityKey
= value;
291
DetachedEntityKey
= value;
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (1)
489
((EntityReference)this).
DetachedEntityKey
= null;
System\Data\Objects\DataClasses\RelatedEnd.cs (2)
2017
entityReference.
DetachedEntityKey
= entityReference.AttachedEntityKey;
2035
entityReference.
DetachedEntityKey
= null;
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
1037
reference.
DetachedEntityKey
= reference.EntityKey;
System\Data\Objects\EntityEntry.cs (1)
2593
entityReference.
DetachedEntityKey
= targetKey;
System\Data\Objects\ObjectStateManager.cs (1)
945
((EntityReference)relatedEnd).
DetachedEntityKey
= targetKey;
System\Data\Objects\RelationshipEntry.cs (1)
545
entityReference.
DetachedEntityKey
= null;
20 references to DetachedEntityKey
System.Data.Entity (20)
System\Data\Objects\DataClasses\EntityReference.cs (2)
124
attachedKey =
DetachedEntityKey
;
150
return
DetachedEntityKey
;
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (9)
273
else if (
DetachedEntityKey
!= null)
286
EntityEntry existingEntry = manager.FindEntityEntry(
DetachedEntityKey
);
304
foreach (RelationshipEntry relationshipEntry in this.ObjectContext.ObjectStateManager.FindRelationshipsByKey(
DetachedEntityKey
))
307
if (relationshipEntry.IsSameAssociationSetAndRole((AssociationSet)RelationshipSet, (AssociationEndMember)ToEndMember,
DetachedEntityKey
) &&
358
EntitySet targetEntitySet =
DetachedEntityKey
.GetEntitySet(this.ObjectContext.MetadataWorkspace);
359
manager.AddKeyEntry(
DetachedEntityKey
, targetEntitySet);
365
RelationshipNavigation.From, ownerKey, RelationshipNavigation.To,
DetachedEntityKey
);
423
else if (
DetachedEntityKey
!= null)
438
new KeyValuePair<string, EntityKey>(RelationshipNavigation.To,
DetachedEntityKey
));
System\Data\Objects\DataClasses\RelatedEnd.cs (9)
1643
if (entityRef != null && entityRef.
DetachedEntityKey
!= null)
1646
if (entityRef.
DetachedEntityKey
!= targetKey)
1803
((EntityReference)this).
DetachedEntityKey
!= null))
1825
principalKey = ((EntityReference)this).
DetachedEntityKey
;
1848
EntityKey detachedKey = ((EntityReference)this).
DetachedEntityKey
;
2121
if (entityRef != null && entityRef.
DetachedEntityKey
!= null)
2124
if (entityRef.
DetachedEntityKey
!= targetKey)
2388
if (entityRef != null && entityRef.
DetachedEntityKey
!= null)
2390
EntityKey detachedKey = entityRef.
DetachedEntityKey
;