9 references to SetCachedForeignKey
System.Data.Entity (9)
System\Data\Objects\DataClasses\EntityReference.cs (5)
538
SetCachedForeignKey
(new EntityKey(principalEntitySet, value), dependentEntity.ObjectStateEntry);
544
SetCachedForeignKey
(new EntityKey(principalEntitySet, values), dependentEntity.ObjectStateEntry);
597
SetCachedForeignKey
(principalKey, dependentEntity.ObjectStateEntry);
733
SetCachedForeignKey
(ForeignKeyFactory.CreateConceptualNullKey(realKey), entry);
740
SetCachedForeignKey
(null, entry);
System\Data\Objects\EntityEntry.cs (2)
1719
reference.
SetCachedForeignKey
(pair.Value.First(), this);
3536
relatedEnd.
SetCachedForeignKey
(foreignKey, this);
System\Data\Objects\ObjectStateManager.cs (2)
621
reference.
SetCachedForeignKey
(null, null);
3558
reference.
SetCachedForeignKey
(ForeignKeyFactory.CreateKeyFromForeignKeyValues(entry, reference), entry);