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