12 references to CachedForeignKey
System.Data.Entity (12)
System\Data\Objects\DataClasses\EntityReference.cs (5)
405
Debug.Assert(
CachedForeignKey
!= null || EntityKey == null, "CachedForeignKey should not be null if EntityKey is not null.");
408
(this.
CachedForeignKey
!= null && this.
CachedForeignKey
!= targetEntityKey));
433
(
CachedForeignKey
== null && targetEntity.ObjectStateEntry.State == EntityState.Added))))) // setting to an added principle
719
EntityKey realKey =
CachedForeignKey
;
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
559
if (reference != null && ForeignKeyFactory.IsConceptualNullKey(reference.
CachedForeignKey
))
System\Data\Objects\EntityEntry.cs (5)
1150
bool hasConceptualNullFk = ForeignKeyFactory.IsConceptualNullKey(reference.
CachedForeignKey
);
1717
if (!ForeignKeyFactory.IsConceptualNullKey(reference.
CachedForeignKey
))
3429
if (!ForeignKeyFactory.IsConceptualNullKey(relatedEnd.
CachedForeignKey
))
3447
bool hasConceptualNullFk = ForeignKeyFactory.IsConceptualNullKey(reference.
CachedForeignKey
);
3915
EntityKey originalKey = entityReference.
CachedForeignKey
;
System\Data\Objects\ObjectStateManager.cs (1)
617
if (reference != null && ForeignKeyFactory.IsConceptualNullKey(reference.
CachedForeignKey
))