1 write to _cachedForeignKey
System.Data.Entity (1)
System\Data\Objects\DataClasses\EntityReference.cs (1)
363
_cachedForeignKey
= newForeignKey;
10 references to _cachedForeignKey
System.Data.Entity (10)
System\Data\Objects\DataClasses\EntityReference.cs (10)
113
if (IsDependentEndOfReferentialConstraint(false) &&
_cachedForeignKey
!= null)
115
if (!ForeignKeyFactory.IsConceptualNullKey(
_cachedForeignKey
))
117
attachedKey =
_cachedForeignKey
;
350
return EntityKey ??
_cachedForeignKey
;
358
_cachedForeignKey
!= null && !ForeignKeyFactory.IsConceptualNullKey(
_cachedForeignKey
) // do we have an fk?
359
&&
_cachedForeignKey
!= newForeignKey) // is the FK different from the one that we already have?
361
this.ObjectContext.ObjectStateManager.RemoveEntryFromForeignKeyIndex(
_cachedForeignKey
, source);
373
if (
_cachedForeignKey
!= null)
375
yield return
_cachedForeignKey
;