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