1 override of ReferenceValue
System.Data.Entity (1)
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (1)
92
internal override IEntityWrapper
ReferenceValue
4 writes to ReferenceValue
System.Data.Entity (4)
System\Data\Objects\DataClasses\EntityReference.cs (2)
193
ReferenceValue
= EntityWrapperFactory.NullWrapper;
220
this.
ReferenceValue
= targetEntry.WrappedEntity;
System\Data\Objects\EntityEntry.cs (2)
3584
relatedEnd.
ReferenceValue
= EntityWrapperFactory.NullWrapper;
3592
relatedEnd.
ReferenceValue
= EntityWrapperFactory.NullWrapper;
24 references to ReferenceValue
System.Data.Entity (24)
System\Data\Objects\DataClasses\EntityReference.cs (3)
161
if (value != null && value == EntityKey && (
ReferenceValue
.Entity != null || (
ReferenceValue
.Entity == null && !forceFixup)))
302
if (
ReferenceValue
.Entity == null &&
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
1830
IEntityWrapper wrappedRelatedEntity = ((EntityReference)this).
ReferenceValue
;
System\Data\Objects\EntityEntry.cs (10)
3453
IEntityWrapper existingPrincipal = reference.
ReferenceValue
;
3531
relatedEnd.
ReferenceValue
.ObjectStateEntry == null ||
3532
relatedEnd.
ReferenceValue
.ObjectStateEntry.State != EntityState.Added);
3582
if (canModifyReference && replaceExistingRef && relatedEnd.
ReferenceValue
.Entity != null)
3590
if (replaceExistingRef && (relatedEnd.
ReferenceValue
.Entity != null || relatedEnd.EntityKey != null))
3615
if ((refToPrincipal.
ReferenceValue
.Entity == null && refToPrincipal.NavigationPropertyIsNullOrMissing()) &&
3616
(refToDependent == null || (refToDependent.
ReferenceValue
.Entity == null && refToDependent.NavigationPropertyIsNullOrMissing())))
3622
(Object.ReferenceEquals(refToDependent.
ReferenceValue
.Entity, refToPrincipal.WrappedOwner.Entity) ||
3628
Object.ReferenceEquals(refToPrincipal.
ReferenceValue
.Entity, wrappedPrincipal.Entity) ||
3704
IEntityWrapper existingPrincipal = reference.
ReferenceValue
;
System\Data\Objects\ObjectStateManager.cs (10)
836
!Object.ReferenceEquals(relatedReference.
ReferenceValue
.Entity, wrappedTarget.Entity))
845
var currentWrappedTarget = relatedReference.
ReferenceValue
;
3433
TransactionManager.EntityBeingReparented = targetReference.GetDependentEndOfReferentialConstraint(targetReference.
ReferenceValue
.Entity);
3441
TransactionManager.EntityBeingReparented = reference.GetDependentEndOfReferentialConstraint(reference.
ReferenceValue
.Entity);
3510
reference.
ReferenceValue
!= NullEntityWrapper.NullWrapper &&
3511
reference.
ReferenceValue
.EntityKey.IsTemporary &&
3512
this.TryGetEntityEntry(reference.
ReferenceValue
.EntityKey, out relatedEntry) &&
3536
TransactionManager.EntityBeingReparented = reference.GetDependentEndOfReferentialConstraint(reference.
ReferenceValue
.Entity);
3572
TransactionManager.EntityBeingReparented = reference.GetDependentEndOfReferentialConstraint(reference.
ReferenceValue
.Entity);
3656
wrappedEntity = reference.
ReferenceValue
;