Base:
property
IsKeyEntry
System.Data.Objects.ObjectStateEntry.IsKeyEntry
64 references to IsKeyEntry
System.Data.Entity (64)
System\Data\Common\Internal\Materialization\Shaper.cs (3)
153
if (null != existingEntry && !existingEntry.
IsKeyEntry
)
201
if (null != existingEntry && !existingEntry.
IsKeyEntry
)
363
if (targetEntry.
IsKeyEntry
|| newEntryState == EntityState.Deleted)
System\Data\Objects\DataClasses\EntityReference.cs (1)
213
if (!targetEntry.
IsKeyEntry
)
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (1)
295
if (existingEntry.
IsKeyEntry
)
System\Data\Objects\EntityEntry.cs (35)
242
if (
IsKeyEntry
)
341
if (this.
IsKeyEntry
)
397
if (this.
IsKeyEntry
)
431
Debug.Assert(!this.
IsKeyEntry
|| State == EntityState.Unchanged, "Key ObjectStateEntries must always be unchanged.");
496
if (this.
IsKeyEntry
)
519
if (
IsKeyEntry
)
574
if (this.
IsKeyEntry
)
594
if (this.
IsKeyEntry
)
963
Debug.Assert(!this.
IsKeyEntry
, "SetModifiedAll called on a KeyEntry");
981
if (this.
IsKeyEntry
)
996
if (this.
IsKeyEntry
)
1012
if (this.
IsKeyEntry
)
1030
if (this.
IsKeyEntry
)
1641
Debug.Assert(!this.
IsKeyEntry
, "should not edit original key entry");
1654
if (!this.
IsKeyEntry
) // _wrappedEntity.Entity is not null.
1675
Debug.Assert(!this.
IsKeyEntry
);
1906
Debug.Assert(!this.
IsKeyEntry
, "Entry should be an EntityEntry");
2247
Debug.Assert(!this.
IsKeyEntry
, "Entry should be an EntityEntry");
2411
Debug.Assert(!this.
IsKeyEntry
);
2478
if (this.
IsKeyEntry
)
2559
if (!relatedEntry.
IsKeyEntry
)
2574
Debug.Assert(!this.
IsKeyEntry
, "Should only be detaching relationships with key entries if the source is not a key entry");
2583
if (relatedEntry.
IsKeyEntry
)
2653
if (relatedEntry.
IsKeyEntry
)
2721
if (otherEnd.
IsKeyEntry
)
2834
Debug.Assert(this.
IsKeyEntry
, "ObjectStateEntry should be a key.");
2866
Debug.Assert(!this.
IsKeyEntry
);
2903
Debug.Assert(this.
IsKeyEntry
);
2946
Debug.Assert(!this.
IsKeyEntry
);
3059
Debug.Assert(!this.
IsKeyEntry
, "shouldn't be called for a key entry");
3066
if (this.
IsKeyEntry
)
3343
Debug.Assert(!
IsKeyEntry
, "Cannot apply values to a key KeyEntry.");
3370
Debug.Assert(!
IsKeyEntry
, "Cannot apply values to a key KeyEntry.");
3398
if (!this.
IsKeyEntry
)
3545
!principalEntry.
IsKeyEntry
&&
System\Data\Objects\ObjectContext.cs (5)
569
if (null != existingEntry && !(doAttach && existingEntry.
IsKeyEntry
))
911
if (ose == null || ose.
IsKeyEntry
)
956
if (ose == null || ose.
IsKeyEntry
)
1134
if (entry.
IsKeyEntry
)
2476
if (!entry.
IsKeyEntry
)
System\Data\Objects\ObjectStateEntryDbDataRecord.cs (1)
32
Debug.Assert(!cacheEntry.
IsKeyEntry
, "Cannot create an ObjectStateEntryDbDataRecord for a key entry");
System\Data\Objects\ObjectStateEntryDbUpdatableDataRecord.cs (1)
28
Debug.Assert(!cacheEntry.
IsKeyEntry
, "Cannot create an ObjectStateEntryDbUpdatableDataRecord for a key entry");
System\Data\Objects\ObjectStateEntryOriginalDbUpdatableDataRecord.cs (1)
30
Debug.Assert(!cacheEntry.
IsKeyEntry
, "Cannot create an ObjectStateEntryOriginalDbUpdatableDataRecord_Internal for a key entry");
System\Data\Objects\ObjectStateManager.cs (15)
610
if (!entry.
IsKeyEntry
&& _entriesWithConceptualNulls != null && _entriesWithConceptualNulls.Remove(entry))
1317
if (!targetEntry.
IsKeyEntry
)
1648
if (keyEntry != null && keyEntry.
IsKeyEntry
)
1995
if (!existingEntry.
IsKeyEntry
)
2038
Debug.Assert(existingEntry.
IsKeyEntry
, "existing entry must be a key entry to promote");
2070
Debug.Assert(!entry.
IsKeyEntry
, "Cannot replace a key of a KeyEntry");
2403
if (entry.
IsKeyEntry
)
2706
bool fireEvent = !entry.
IsKeyEntry
;
3341
!entry.
IsKeyEntry
) // Still need to check this here because entries may have been demoted
3467
!entry.
IsKeyEntry
) // Still need to check this here because entries may have been demoted
3547
if (entry.State == EntityState.Detached || entry.State == EntityState.Deleted || entry.
IsKeyEntry
)
3584
if (entry.State == EntityState.Detached || entry.State == EntityState.Deleted || entry.
IsKeyEntry
)
3592
if (entry.State == EntityState.Detached || entry.State == EntityState.Deleted || entry.
IsKeyEntry
)
3691
Debug.Assert(!entry.
IsKeyEntry
, "List should be filtered before it gets to this method.");
3703
Debug.Assert(!entry.
IsKeyEntry
, "List should be filtered before it gets to this method.");
System\Data\Objects\RelationshipEntry.cs (1)
467
if (relatedEntry.
IsKeyEntry
)