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