5 writes to _wrappedEntity
System.Data.Entity (5)
System\Data\Objects\EntityEntry.cs (5)
69_wrappedEntity = wrappedEntity; 109_wrappedEntity = EntityWrapperFactory.NullWrapper; 909_wrappedEntity = EntityWrapperFactory.NullWrapper; 2837_wrappedEntity = wrappedEntity; 2897_wrappedEntity = EntityWrapperFactory.NullWrapper;
50 references to _wrappedEntity
System.Data.Entity (50)
System\Data\Objects\EntityEntry.cs (50)
134return _wrappedEntity.Entity; 293var originalValue = GetOriginalEntityValue(_cacheTypeMetadata, ordinal, _wrappedEntity.Entity, ObjectStateValueRecord.OriginalReadonly); 294SetCurrentEntityValue(_cacheTypeMetadata, ordinal, _wrappedEntity.Entity, originalValue); 351return new ObjectStateEntryDbDataRecord(this, _cacheTypeMetadata, _wrappedEntity.Entity); 355return new ObjectStateEntryOriginalDbUpdatableDataRecord_Public(this, _cacheTypeMetadata, _wrappedEntity.Entity, s_EntityRoot); 403return new ObjectStateEntryDbUpdatableDataRecord(this, _cacheTypeMetadata, _wrappedEntity.Entity); 471_wrappedEntity.TakeSnapshot(this); 484_wrappedEntity.TakeSnapshot(this); 877return null == _wrappedEntity.Entity; 1045return _wrappedEntity; 1191SetCurrentEntityValue(_cacheTypeMetadata, ordinal, _wrappedEntity.Entity, newValue); 1295return GetOriginalEntityValue(_cacheTypeMetadata, ordinal, _wrappedEntity.Entity, ObjectStateValueRecord.OriginalReadonly); 1647return new ObjectStateEntryOriginalDbUpdatableDataRecord_Internal(this, _cacheTypeMetadata, _wrappedEntity.Entity); 1656_wrappedEntity.SetChangeTracker(null); 1657_wrappedEntity.DetachContext(); 1666_wrappedEntity.EntityKey = null; 1690currentValue = member.GetValue(this._wrappedEntity.Entity); 1696currentValue = member.GetValue(this._wrappedEntity.Entity); 1697this.AddOriginalValue(member, this._wrappedEntity.Entity, currentValue); 1821var currentValue = member.GetValue(this._wrappedEntity.Entity); 1869var originalValueFound = this.FindOriginalValue(member, this._wrappedEntity.Entity, out originalStateManagerValue); 2125Debug.Assert(this._wrappedEntity != null, "wrapped entity shouldn't be null"); 2126Debug.Assert(!(this._wrappedEntity.Entity is IEntityWithRelationships), "this method should be called only for entities which don't implement IEntityWithRelationships"); 2128RelationshipManager rm = this._wrappedEntity.RelationshipManager; 2181relatedWrapper = relatedEntry._wrappedEntity; 2187if (!otherRelatedEnd.ContainsEntity(this._wrappedEntity)) 2226otherRelatedEnd.AddToLocalCache(this._wrappedEntity, applyConstraints: true); 2227otherRelatedEnd.OnAssociationChanged(CollectionChangeAction.Add, _wrappedEntity.Entity); 2330relatedEndTo.VerifyNavigationPropertyForAdd(_wrappedEntity); 2333this.AddDetectedRelationship(relationships, _wrappedEntity, relatedEndTo); 2415RelationshipManager relationshipManager = _wrappedEntity.RelationshipManager; 2444IEntityWrapper existingWrappedEntity = _wrappedEntity; 2461_wrappedEntity.ObjectStateEntry = null; 2619RelationshipManager relationshipManager = _wrappedEntity.RelationshipManager; 2674RelationshipManager relationshipManager = _wrappedEntity.RelationshipManager; 2838_wrappedEntity.ObjectStateEntry = this; 2873_wrappedEntity.SetChangeTracker(null); 2882_wrappedEntity.EntityKey = null; 2892_cache.RemoveEntryFromKeylessStore(_wrappedEntity); 2893_wrappedEntity.DetachContext(); 2894_wrappedEntity.ObjectStateEntry = null; 2896object degradedEntity = _wrappedEntity.Entity; 2909Debug.Assert(_wrappedEntity.Entity != null, "Cannot attach a null entity to the state manager"); 2910_wrappedEntity.SetChangeTracker(this); 2911_wrappedEntity.TakeSnapshot(this); 2962currentValueOld = member.GetValue(_wrappedEntity.Entity); 2976return GetCurrentEntityValue(_cacheTypeMetadata, ordinal, _wrappedEntity.Entity, ObjectStateValueRecord.CurrentUpdatable); 3032_wrappedEntity.SetCurrentValue(this, member, ordinal, userObject, newValue); 3203_wrappedEntity.TakeSnapshot(this); // refresh snapshot 3365_wrappedEntity.UpdateCurrentValueRecord(value, this);