40 references to IsTemporary
System.Data.Entity (40)
System\Data\EntityKey.cs (7)
293if (!IsTemporary) 708Debug.Assert(!IsTemporary, "GetKeyValueExpressions doesn't make sense for temporary keys - they have no values."); 712if (!IsTemporary) 775if (!IsTemporary) 792Debug.Assert(!IsTemporary, "FindValueByName should not be called for temporary keys."); 1180else if (!IsTemporary) 1191Debug.Assert(this.IsTemporary, "The EntityKey is marked as neither a singleton or composite. Therefore it must be marked as temporary.");
System\Data\Mapping\Update\Internal\ExtractorMetadata.cs (1)
217if (entityKey.IsTemporary)
System\Data\Mapping\Update\Internal\KeyManager.cs (1)
302Debug.Assert(addedEntry.EntityKey.IsTemporary);
System\Data\Objects\DataClasses\EntityReference.cs (4)
277if (!ownerKey.IsTemporary && IsDependentEndOfReferentialConstraint(false)) 402!ownerKey.IsTemporary && 470!WrappedOwner.EntityKey.IsTemporary && 569Debug.Assert(!principalKey.IsTemporary, "Cannot update from a temp key");
System\Data\Objects\DataClasses\RelatedEnd.cs (4)
1237!this.WrappedOwner.EntityKey.IsTemporary && IsDependentEndOfReferentialConstraint(false)) 1652if (targetKey.IsTemporary) 1894if (null != (object)principalKey && !principalKey.IsTemporary) 2523return !(entityKey.IsTemporary ||
System\Data\Objects\DataClasses\RelationshipManager.cs (2)
1232if (ownerKey.IsTemporary) 1288if (!ownerKey.IsTemporary || includeOwnValues)
System\Data\Objects\EntityEntry.cs (6)
447Debug.Assert(_entityKey.IsTemporary, "All entities in the Added state should have a temporary EntityKey."); 2343Debug.Assert(!relatedKey.IsTemporary, "the relatedKey was created by a method which returns only permaanent keys"); 2735Debug.Assert(!otherEnd.EntityKey.IsTemporary, "key of key entry can't be temporary"); 2808Debug.Assert(!otherEnd.EntityKey.IsTemporary, "key of Unchanged or Modified entry can't be temporary"); 3469if ((existingPrincipalKey == null || existingPrincipalKey.IsTemporary) && existingPrincipalEntry != null) 3740if (principalKey != null && !principalKey.IsTemporary)
System\Data\Objects\ObjectContext.cs (3)
669if (entry != null && entry.EntityKey.IsTemporary) 1118if (key.IsTemporary) 2484if (key.IsTemporary)
System\Data\Objects\ObjectStateManager.cs (12)
377if ((object)entityKey != null && !entityKey.IsTemporary && !isAdded) 414if ((object)entityKey == null || (isAdded && !entityKey.IsTemporary)) 1460Debug.Assert(!entityKey.IsTemporary, "Verifying a temporary EntityKey doesn't make sense because the key doesn't contain any values."); 1966Debug.Assert(oldKey.IsTemporary, "Cannot fixup an entry with a non-temporary key."); 2073Debug.Assert(!oldKey.IsTemporary, "Entity is not in the Added state but has a temporary key."); 2560if (key.IsTemporary) 2809Debug.Assert(!entry.EntityKey.IsTemporary, "adding temporary entity key into Unchanged state"); 2817Debug.Assert(entry.EntityKey.IsTemporary, "adding non-temporary entity key into Added state"); 2825Debug.Assert(!entry.EntityKey.IsTemporary, "adding temporary entity key into Deleted state"); 2833Debug.Assert(!entry.EntityKey.IsTemporary, "adding temporary entity key into Modified state"); 3294if (entityKey == null || entityKey.IsTemporary) 3511reference.ReferenceValue.EntityKey.IsTemporary &&