41 references to ObjectStateManager
System.Data.Entity (41)
System\Data\Objects\DataClasses\EntityObject.cs (1)
139
if (entry == null || !entry.
ObjectStateManager
.IsDisposed)
System\Data\Objects\EntityEntry.cs (31)
368
this.
ObjectStateManager
.TransactionManager.BeginOriginalValuesGetter();
376
this.
ObjectStateManager
.TransactionManager.EndOriginalValuesGetter();
426
if (
ObjectStateManager
.EntryHasConceptualNull(this))
552
ObjectStateManager osm = this.
ObjectStateManager
;
579
IEntityWrapper wrappedEntity = EntityWrapperFactory.WrapEntityUsingStateManager(currentEntity, this.
ObjectStateManager
);
599
IEntityWrapper wrappedEntity = EntityWrapperFactory.WrapEntityUsingStateManager(originalEntity, this.
ObjectStateManager
);
1120
TransactionManager transManager =
ObjectStateManager
.TransactionManager;
2172
EntityEntry relatedEntry = this.
ObjectStateManager
.FindEntityEntry(o);
2177
Debug.Assert(this.
ObjectStateManager
.TransactionManager.IsAddTracking ||
2178
this.
ObjectStateManager
.TransactionManager.IsAttachTracking, "Should be inside Attach or Add");
2194
if (
ObjectStateManager
.TransactionManager.IsAttachTracking &&
2224
ObjectStateManager
.TransactionManager.AlignedEntityReferences.Add(otherEndAsRef);
2232
if (!this.
ObjectStateManager
.TransactionManager.WrappedEntities.TryGetValue(o, out relatedWrapper))
2234
relatedWrapper = EntityWrapperFactory.WrapEntityUsingStateManager(o, this.
ObjectStateManager
);
2295
this.
ObjectStateManager
.TransactionManager.DeletedRelationshipsByGraph, o, relatedEnd, verifyForAdd:false);
2307
this.
ObjectStateManager
.TransactionManager.AddedRelationshipsByGraph, o, relatedEnd, verifyForAdd:true);
2318
IEntityWrapper relatedWrapper = EntityWrapperFactory.WrapEntityUsingStateManager(relatedObject, this.
ObjectStateManager
);
2326
this.
ObjectStateManager
.FindEntityEntry(relatedObject) == null)
2352
EntityKey permanentKeyOwner = this.
ObjectStateManager
.GetPermanentKey(relatedEntry.WrappedEntity, relatedEndTo, this.WrappedEntity);
3042
this.
ObjectStateManager
.ChangeState(relationshipEntry, EntityState.Unchanged, EntityState.Added);
3115
this.
ObjectStateManager
.ReplaceKeyWithTemporaryKey(this);
3148
this.
ObjectStateManager
.ReplaceKeyWithTemporaryKey(this);
3185
this.
ObjectStateManager
.ReplaceKeyWithTemporaryKey(this);
3200
this.
ObjectStateManager
.ChangeState(this, EntityState.Deleted, EntityState.Unchanged);
3214
this.
ObjectStateManager
.ChangeState(this, EntityState.Deleted, EntityState.Modified);
3250
this.
ObjectStateManager
.ChangeState(this, oldState, EntityState.Modified);
3450
ObjectStateManager
.ForgetEntryWithConceptualNull(this, resetAllKeys: false);
3537
ObjectStateManager
.ForgetEntryWithConceptualNull(this, resetAllKeys: false);
3910
TransactionManager tm = this.
ObjectStateManager
.TransactionManager;
3925
this.
ObjectStateManager
.TryGetEntityEntry(currentKey, out entry);
3941
this.
ObjectStateManager
.TryGetEntityEntry(currentKey, out entry);
System\Data\Objects\ObjectStateEntry.cs (1)
242
return (IEntityStateManager)this.
ObjectStateManager
;
System\Data\Objects\ObjectStateEntryOriginalDbUpdatableDataRecord.cs (1)
120
entry.
ObjectStateManager
.ChangeState(entry, oldState, EntityState.Modified);
System\Data\Objects\ObjectStateManager.cs (2)
489
Debug.Assert(entry.
ObjectStateManager
!= null, "Attempt to add detached state entry to dangling keys");
1380
ObjectStateManager cache = relationshipEntry.
ObjectStateManager
;
System\Data\Objects\RelationshipEntry.cs (5)
234
this.
ObjectStateManager
.ChangeRelationshipState(
243
this.
ObjectStateManager
.ChangeRelationshipState(
642
this.
ObjectStateManager
.ChangeState(this, EntityState.Unchanged, EntityState.Added);
672
this.
ObjectStateManager
.ChangeState(this, EntityState.Deleted, EntityState.Added);
682
this.
ObjectStateManager
.ChangeState(this, EntityState.Deleted, EntityState.Unchanged);