19 references to ForeignKeyFactory
System.Data.Entity (19)
System\Data\Objects\DataClasses\EntityReference.cs (5)
115
if (!
ForeignKeyFactory
.IsConceptualNullKey(_cachedForeignKey))
358
_cachedForeignKey != null && !
ForeignKeyFactory
.IsConceptualNullKey(_cachedForeignKey) // do we have an fk?
647
EntityKey foreignKey =
ForeignKeyFactory
.CreateKeyFromForeignKeyValues(entry, this);
722
realKey =
ForeignKeyFactory
.CreateKeyFromForeignKeyValues(entry, this);
733
SetCachedForeignKey(
ForeignKeyFactory
.CreateConceptualNullKey(realKey), entry);
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
559
if (reference != null &&
ForeignKeyFactory
.IsConceptualNullKey(reference.CachedForeignKey))
System\Data\Objects\EntityEntry.cs (10)
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);
3454
EntityKey foreignKey =
ForeignKeyFactory
.CreateKeyFromForeignKeyValues(this, reference);
3524
foreignKey =
ForeignKeyFactory
.CreateKeyFromForeignKeyValues(this, relatedEnd);
3859
EntityKey foreignKey =
ForeignKeyFactory
.CreateKeyFromForeignKeyValues(this, constraint, principalEntitySet, useOriginalValues);
3914
EntityKey currentKey =
ForeignKeyFactory
.CreateKeyFromForeignKeyValues(this, entityReference);
3916
bool originalKeyIsConceptualNull =
ForeignKeyFactory
.IsConceptualNullKey(originalKey);
3937
&& (!originalKeyIsConceptualNull ||
ForeignKeyFactory
.IsConceptualNullKeyChanged(originalKey, currentKey)))
System\Data\Objects\ObjectStateManager.cs (3)
521
Debug.Assert(entry.State == EntityState.Detached || !
ForeignKeyFactory
.IsConceptualNullKey(entry.EntityKey), "Found an entry with conceptual null Key=" + entry.EntityKey.ConcatKeyValue());
617
if (reference != null &&
ForeignKeyFactory
.IsConceptualNullKey(reference.CachedForeignKey))
3558
reference.SetCachedForeignKey(
ForeignKeyFactory
.CreateKeyFromForeignKeyValues(entry, reference), entry);