8 writes to _wrappedCachedValue
System.Data.Entity (8)
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (8)
56
_wrappedCachedValue
= EntityWrapperFactory.NullWrapper;
62
_wrappedCachedValue
= EntityWrapperFactory.NullWrapper;
269
_wrappedCachedValue
= identityWrapper;
496
this.
_wrappedCachedValue
= NullEntityWrapper.NullWrapper;
560
_wrappedCachedValue
= EntityWrapperFactory.NullWrapper;
698
_wrappedCachedValue
= reference._wrappedCachedValue;
740
_wrappedCachedValue
= EntityWrapperFactory.WrapEntityUsingContext(_cachedValue, ObjectContext);
786
_wrappedCachedValue
= wrappedEntity;
36 references to _wrappedCachedValue
System.Data.Entity (36)
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (36)
89
get { return
_wrappedCachedValue
; }
97
return
_wrappedCachedValue
;
104
if (value.Entity != null && value.Entity ==
_wrappedCachedValue
.Entity)
135
if (
_wrappedCachedValue
.Entity != null)
139
RelatedEnd relatedEnd = GetOtherEndOfRelationship(
_wrappedCachedValue
);
236
return
_wrappedCachedValue
.Entity == null ? new IEntityWrapper[0] : new IEntityWrapper[] {
_wrappedCachedValue
};
262
if (null !=
_wrappedCachedValue
.Entity)
266
IEntityWrapper identityWrapper = EntityWrapperFactory.WrapEntityUsingContext(
_wrappedCachedValue
.Entity, WrappedOwner.Context);
267
if (identityWrapper !=
_wrappedCachedValue
)
271
IncludeEntity(
_wrappedCachedValue
, addRelationshipAsUnchanged, doAttach);
374
if (null !=
_wrappedCachedValue
.Entity)
386
if ((transManager.ProcessedEntities == null || !transManager.ProcessedEntities.Contains(
_wrappedCachedValue
)) &&
390
RelationshipEntry relationshipEntry = IsForeignKey ? null : FindRelationshipEntryInObjectStateManager(
_wrappedCachedValue
);
394
Remove(
_wrappedCachedValue
,
420
ExcludeEntity(
_wrappedCachedValue
);
458
if (null !=
_wrappedCachedValue
.Entity)
462
if ((wrappedEntity.Entity ==
_wrappedCachedValue
.Entity) && (navigation.Equals(this.RelationshipNavigation)))
464
Remove(
_wrappedCachedValue
, /*fixup*/false, /*deleteEntity*/false, /*deleteOwner*/false, /*applyReferentialConstraints*/false, /*preserveForeignKey*/false);
468
Remove(
_wrappedCachedValue
, /*fixup*/true, doCascadeDelete, /*deleteOwner*/false, /*applyReferentialConstraints*/true, /*preserveForeignKey*/false);
558
Debug.Assert(null ==
_wrappedCachedValue
.Entity || wrappedEntity.Entity ==
_wrappedCachedValue
.Entity, "The specified object is not a part of this relationship.");
600
if (this.
_wrappedCachedValue
.Entity != null)
611
if (visited.Contains(
_wrappedCachedValue
))
615
visited.Add(
_wrappedCachedValue
);
617
_wrappedCachedValue
.RelationshipManager.RetrieveReferentialConstraintProperties(out retrievedProperties, visited, includeOwnValues: true);
644
return
_wrappedCachedValue
.Entity == null;
669
return null !=
_wrappedCachedValue
.Entity &&
_wrappedCachedValue
.Entity == wrappedEntity.Entity;
694
Debug.Assert(this.
_wrappedCachedValue
.Entity == null, "The EntityReference already has a value.");
696
if (reference != null && reference.
_wrappedCachedValue
.Entity != null)
698
_wrappedCachedValue = reference.
_wrappedCachedValue
;
699
_cachedValue = (TEntity)
_wrappedCachedValue
.Entity;
764
if (wrappedEntity !=
_wrappedCachedValue
)
767
if (applyConstraints && null !=
_wrappedCachedValue
.Entity)
772
if (tm == null || tm.ProcessedEntities == null || tm.ProcessedEntities.Contains(
_wrappedCachedValue
))