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)
134
return
_wrappedEntity
.Entity;
293
var originalValue = GetOriginalEntityValue(_cacheTypeMetadata, ordinal,
_wrappedEntity
.Entity, ObjectStateValueRecord.OriginalReadonly);
294
SetCurrentEntityValue(_cacheTypeMetadata, ordinal,
_wrappedEntity
.Entity, originalValue);
351
return new ObjectStateEntryDbDataRecord(this, _cacheTypeMetadata,
_wrappedEntity
.Entity);
355
return new ObjectStateEntryOriginalDbUpdatableDataRecord_Public(this, _cacheTypeMetadata,
_wrappedEntity
.Entity, s_EntityRoot);
403
return new ObjectStateEntryDbUpdatableDataRecord(this, _cacheTypeMetadata,
_wrappedEntity
.Entity);
471
_wrappedEntity
.TakeSnapshot(this);
484
_wrappedEntity
.TakeSnapshot(this);
877
return null ==
_wrappedEntity
.Entity;
1045
return
_wrappedEntity
;
1191
SetCurrentEntityValue(_cacheTypeMetadata, ordinal,
_wrappedEntity
.Entity, newValue);
1295
return GetOriginalEntityValue(_cacheTypeMetadata, ordinal,
_wrappedEntity
.Entity, ObjectStateValueRecord.OriginalReadonly);
1647
return new ObjectStateEntryOriginalDbUpdatableDataRecord_Internal(this, _cacheTypeMetadata,
_wrappedEntity
.Entity);
1656
_wrappedEntity
.SetChangeTracker(null);
1657
_wrappedEntity
.DetachContext();
1666
_wrappedEntity
.EntityKey = null;
1690
currentValue = member.GetValue(this.
_wrappedEntity
.Entity);
1696
currentValue = member.GetValue(this.
_wrappedEntity
.Entity);
1697
this.AddOriginalValue(member, this.
_wrappedEntity
.Entity, currentValue);
1821
var currentValue = member.GetValue(this.
_wrappedEntity
.Entity);
1869
var originalValueFound = this.FindOriginalValue(member, this.
_wrappedEntity
.Entity, out originalStateManagerValue);
2125
Debug.Assert(this.
_wrappedEntity
!= null, "wrapped entity shouldn't be null");
2126
Debug.Assert(!(this.
_wrappedEntity
.Entity is IEntityWithRelationships), "this method should be called only for entities which don't implement IEntityWithRelationships");
2128
RelationshipManager rm = this.
_wrappedEntity
.RelationshipManager;
2181
relatedWrapper = relatedEntry.
_wrappedEntity
;
2187
if (!otherRelatedEnd.ContainsEntity(this.
_wrappedEntity
))
2226
otherRelatedEnd.AddToLocalCache(this.
_wrappedEntity
, applyConstraints: true);
2227
otherRelatedEnd.OnAssociationChanged(CollectionChangeAction.Add,
_wrappedEntity
.Entity);
2330
relatedEndTo.VerifyNavigationPropertyForAdd(
_wrappedEntity
);
2333
this.AddDetectedRelationship(relationships,
_wrappedEntity
, relatedEndTo);
2415
RelationshipManager relationshipManager =
_wrappedEntity
.RelationshipManager;
2444
IEntityWrapper existingWrappedEntity =
_wrappedEntity
;
2461
_wrappedEntity
.ObjectStateEntry = null;
2619
RelationshipManager relationshipManager =
_wrappedEntity
.RelationshipManager;
2674
RelationshipManager 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;
2896
object degradedEntity =
_wrappedEntity
.Entity;
2909
Debug.Assert(
_wrappedEntity
.Entity != null, "Cannot attach a null entity to the state manager");
2910
_wrappedEntity
.SetChangeTracker(this);
2911
_wrappedEntity
.TakeSnapshot(this);
2962
currentValueOld = member.GetValue(
_wrappedEntity
.Entity);
2976
return 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);