4 writes to EntityKey
System.Data.Services (2)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (2)
2431((EntityReference)relatedEnd).EntityKey = null; 2447((EntityReference)relatedEnd).EntityKey = null;
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceReferenceGroup.cs (2)
117reference.EntityKey = null; 121reference.EntityKey = new EntityKey(EntityDataSourceUtil.GetQualifiedEntitySetName(End.EntitySet), (IEnumerable<KeyValuePair<string, object>>)newKeyValues);
17 references to EntityKey
System.Data.Entity (14)
System\Data\Common\Internal\Materialization\Shaper.cs (1)
513forceToTrue &= reference.EntityKey == null;
System\Data\Objects\DataClasses\EntityReference.cs (7)
161if (value != null && value == EntityKey && (ReferenceValue.Entity != null || (ReferenceValue.Entity == null && !forceFixup))) 330return this.EntityKey; 350return EntityKey ?? _cachedForeignKey; 368if (EntityKey != null) 370yield return EntityKey; 405Debug.Assert(CachedForeignKey != null || EntityKey == null, "CachedForeignKey should not be null if EntityKey is not null."); 432(EntityKey == null && targetEntity.ObjectStateEntry.State == EntityState.Deleted || // setting to a deleted principle
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
1821principalKey = ((EntityReference)this).EntityKey;
System\Data\Objects\DataClasses\RelationshipManager.cs (2)
1035if (reference != null && reference.EntityKey != null) 1037reference.DetachedEntityKey = reference.EntityKey;
System\Data\Objects\EntityEntry.cs (3)
3590if (replaceExistingRef && (relatedEnd.ReferenceValue.Entity != null || relatedEnd.EntityKey != null)) 3662principalKey = relatedEnd.EntityKey ?? relatedEnd.CachedValue.ObjectStateEntry.EntityKey; 3739EntityKey principalKey = reference.EntityKey;
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
2435EntityKey key = ((EntityReference)relatedEnd).EntityKey;
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceReferenceGroup.cs (2)
72EntityKey originalEntityKeys = reference.EntityKey; 127EntityKey key = GetRelatedReference(entity).EntityKey;