32 references to IsForeignKey
System.Data.Entity (32)
System\Data\Objects\DataClasses\EntityCollection.cs (1)
408
if (!
IsForeignKey
)
System\Data\Objects\DataClasses\EntityReference.cs (7)
110
if (
IsForeignKey
)
232
addKeyEntry = !
IsForeignKey
;
260
if (
IsForeignKey
)
306
IsForeignKey
)
465
Debug.Assert(this.
IsForeignKey
, "cannot update foreign key values if the relationship is not a FK");
570
Debug.Assert(this.
IsForeignKey
, "cannot update foreign key values if the relationship is not a FK");
630
Debug.Assert(
IsForeignKey
, "Cannot null FKs for independent associations.");
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (4)
351
if (addNewRelationship && !
IsForeignKey
)
390
RelationshipEntry relationshipEntry =
IsForeignKey
? null : FindRelationshipEntryInObjectStateManager(_wrappedCachedValue);
391
Debug.Assert(
IsForeignKey
|| relationshipEntry != null, "Should have been able to find a valid relationship since _cachedValue is non-null");
569
if (ObjectContext != null &&
IsForeignKey
&& !preserveForeignKey)
System\Data\Objects\DataClasses\RelatedEnd.cs (14)
357
(!
IsForeignKey
||
742
(_wrappedOwner.ObjectStateEntry.State == EntityState.Added &&
IsForeignKey
&& IsDependentEndOfReferentialConstraint(false)))))
1232
if (!this.
IsForeignKey
&& !relationshipAlreadyExists && !UsingNoTracking)
1334
this.
IsForeignKey
&&
1367
if (!this.
IsForeignKey
)
1438
!this.
IsForeignKey
)
1606
IsForeignKey
&&
1664
if (!this.
IsForeignKey
)
1694
Debug.Assert(
IsForeignKey
, "cannot update foreign key values if the relationship is not a FK");
1763
if (!this.
IsForeignKey
)
1772
else if (!this.
IsForeignKey
&& null != FindRelationshipEntryInObjectStateManager(wrappedEntity))
1817
if (this.
IsForeignKey
&&
2030
if (
IsForeignKey
)
2150
Debug.Assert(!this.
IsForeignKey
, "for IsForeignKey relationship ObjectStateEntries don't exist");
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
1158
if (relatedEnd.
IsForeignKey
)
System\Data\Objects\ObjectStateManager.cs (5)
854
Debug.Assert(relationshipEntry != null || relatedEnd.
IsForeignKey
, "Could not find relationship entry for LAT relationship.");
2328
if (relatedEnd.
IsForeignKey
)
3176
if (pair.Key.
IsForeignKey
&& (entry.State == EntityState.Unchanged || entry.State == EntityState.Modified))
3553
reference.
IsForeignKey
&&
3605
if (relatedEnd.
IsForeignKey
)