1 write to TransactionManager
System.Data.Entity (1)
System\Data\Objects\ObjectStateManager.cs (1)
142
TransactionManager
= new TransactionManager();
132 references to TransactionManager
System.Data.Entity (132)
System\Data\Objects\DataClasses\EntityCollection.cs (1)
417
TransactionManager tm = ObjectContext.ObjectStateManager.
TransactionManager
;
System\Data\Objects\DataClasses\EntityReference.cs (7)
249
manager.
TransactionManager
.EntityBeingReparented = WrappedOwner.Entity;
256
manager.
TransactionManager
.EntityBeingReparented = null;
474
stateManager.
TransactionManager
.BeginForeignKeyUpdate(this);
553
stateManager.
TransactionManager
.EndForeignKeyUpdate();
575
stateManager.
TransactionManager
.BeginForeignKeyUpdate(this);
605
stateManager.
TransactionManager
.EndForeignKeyUpdate();
634
TransactionManager transManager = stateManager.
TransactionManager
;
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (5)
117
context.ObjectStateManager.
TransactionManager
.EntityBeingReparented = GetDependentEndOfReferentialConstraint(value.Entity);
127
context.ObjectStateManager.
TransactionManager
.EntityBeingReparented = null;
346
manager.
TransactionManager
.PopulatedEntityReferences.Add(this);
380
TransactionManager transManager = ObjectContext.ObjectStateManager.
TransactionManager
;
766
TransactionManager tm = ObjectContext != null ? ObjectContext.ObjectStateManager.
TransactionManager
: null;
System\Data\Objects\DataClasses\RelatedEnd.cs (25)
1235
if (!this.ObjectContext.ObjectStateManager.
TransactionManager
.IsLocalPublicAPI &&
1248
(this.ObjectContext.ObjectStateManager.
TransactionManager
.IsAddTracking ||
1249
this.ObjectContext.ObjectStateManager.
TransactionManager
.IsAttachTracking ||
1250
this.ObjectContext.ObjectStateManager.
TransactionManager
.IsDetectChanges))
1272
TransactionManager transManager = attachedRelatedEnd.WrappedOwner.Context.ObjectStateManager.
TransactionManager
;
1281
if (attachedRelatedEnd.WrappedOwner.Context.ObjectStateManager.
TransactionManager
.TrackProcessedEntities)
1284
if (!attachedRelatedEnd.WrappedOwner.Context.ObjectStateManager.
TransactionManager
.WrappedEntities.ContainsKey(entityToAdd.Entity))
1286
attachedRelatedEnd.WrappedOwner.Context.ObjectStateManager.
TransactionManager
.WrappedEntities.Add(entityToAdd.Entity, entityToAdd);
1288
attachedRelatedEnd.WrappedOwner.Context.ObjectStateManager.
TransactionManager
.ProcessedEntities.Add(attachedRelatedEnd.WrappedOwner);
1327
attachedRelatedEnd.WrappedOwner.Context.ObjectStateManager.
TransactionManager
.EndAddTracking();
1335
!this.ObjectContext.ObjectStateManager.
TransactionManager
.IsGraphUpdate)
1448
if (_context == null || !_context.ObjectStateManager.
TransactionManager
.IsLocalPublicAPI)
1457
!ReferenceEquals(wrappedEntity.Entity, _context.ObjectStateManager.
TransactionManager
.EntityBeingReparented) &&
1605
ObjectContext.ObjectStateManager.
TransactionManager
.IsAddTracking &&
1725
TransactionManager tm = wrapper.Context.ObjectStateManager.
TransactionManager
;
1751
if (!_context.ObjectStateManager.
TransactionManager
.TrackProcessedEntities ||
1752
!(_context.ObjectStateManager.
TransactionManager
.IsAttachTracking || _context.ObjectStateManager.
TransactionManager
.IsAddTracking) ||
1753
_context.ObjectStateManager.
TransactionManager
.ProcessedEntities.Contains(wrappedEntity))
1818
!(this.ObjectContext.ObjectStateManager.
TransactionManager
.IsAddTracking ||
1819
this.ObjectContext.ObjectStateManager.
TransactionManager
.IsAttachTracking))
2184
wrappedEntity.Context.ObjectStateManager.
TransactionManager
.IsAttachTracking &&
2185
wrappedEntity.Context.ObjectStateManager.
TransactionManager
.PromotedKeyEntries.TryGetValue(wrappedEntity.Entity, out entry))
2451
this.ObjectContext.ObjectStateManager.
TransactionManager
.IsAttachTracking &&
2452
this.ObjectContext.ObjectStateManager.
TransactionManager
.OriginalMergeOption == MergeOption.NoTracking)
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
1080
TransactionManager transManager = wrappedOwner.Context.ObjectStateManager.
TransactionManager
;
System\Data\Objects\EntityEntry.cs (37)
368
this.ObjectStateManager.
TransactionManager
.BeginOriginalValuesGetter();
376
this.ObjectStateManager.
TransactionManager
.EndOriginalValuesGetter();
553
osm.
TransactionManager
.BeginLocalPublicAPI();
560
osm.
TransactionManager
.EndLocalPublicAPI();
1120
TransactionManager transManager = ObjectStateManager.
TransactionManager
;
1163
if (_cache != null && !_cache.
TransactionManager
.IsOriginalValuesGetter)
1659
if (!this._cache.
TransactionManager
.IsAttachTracking ||
1660
this._cache.
TransactionManager
.OriginalMergeOption != MergeOption.NoTracking)
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))
2295
this.ObjectStateManager.
TransactionManager
.DeletedRelationshipsByGraph, o, relatedEnd, verifyForAdd:false);
2307
this.ObjectStateManager.
TransactionManager
.AddedRelationshipsByGraph, o, relatedEnd, verifyForAdd:true);
2423
_cache.
TransactionManager
.BeginDetaching();
2436
_cache.
TransactionManager
.EndDetaching();
3419
_cache.
TransactionManager
.BeginGraphUpdate();
3420
bool setIsLoaded = !(_cache.
TransactionManager
.IsAttachTracking || _cache.
TransactionManager
.IsAddTracking);
3437
_cache.
TransactionManager
.EndGraphUpdate();
3479
if (_cache.
TransactionManager
.RelationshipBeingUpdated != reference)
3484
_cache.
TransactionManager
.BeginGraphUpdate();
3490
_cache.
TransactionManager
.EntityBeingReparented = Entity;
3499
_cache.
TransactionManager
.EntityBeingReparented = null;
3500
_cache.
TransactionManager
.EndGraphUpdate();
3529
bool canModifyReference = _cache.
TransactionManager
.RelationshipBeingUpdated != relatedEnd &&
3530
(!_cache.
TransactionManager
.IsForeignKeyUpdate ||
3554
if (_cache.
TransactionManager
.PopulatedEntityReferences != null)
3556
Debug.Assert(_cache.
TransactionManager
.IsAddTracking || _cache.
TransactionManager
.IsAttachTracking,
3558
_cache.
TransactionManager
.PopulatedEntityReferences.Add(relatedEnd);
3564
if (_cache.
TransactionManager
.PopulatedEntityReferences != null)
3569
_cache.
TransactionManager
.PopulatedEntityReferences.Add(otherEnd);
3673
_cache.
TransactionManager
.BeginFixupKeysByReference();
3680
_cache.
TransactionManager
.EndFixupKeysByReference();
3910
TransactionManager tm = this.ObjectStateManager.
TransactionManager
;
System\Data\Objects\Internal\BaseEntityWrapper.cs (2)
179
Context.ObjectStateManager.
TransactionManager
.IsAttachTracking &&
180
Context.ObjectStateManager.
TransactionManager
.OriginalMergeOption == MergeOption.NoTracking)
System\Data\Objects\Internal\EntityWrapperFactory.cs (4)
244
if (stateManager.
TransactionManager
.TrackProcessedEntities)
246
if (stateManager.
TransactionManager
.WrappedEntities.TryGetValue(entity, out wrapper))
283
if (stateManager != null && stateManager.
TransactionManager
.TrackProcessedEntities)
285
stateManager.
TransactionManager
.WrappedEntities.Add(entity, wrapper);
System\Data\Objects\ObjectContext.cs (14)
643
System.Data.Objects.Internal.TransactionManager transManager = ObjectStateManager.
TransactionManager
;
725
Debug.Assert(this.ObjectStateManager.
TransactionManager
.TrackProcessedEntities, "Expected tracking processed entities to be true when adding.");
726
Debug.Assert(this.ObjectStateManager.
TransactionManager
.ProcessedEntities != null, "Expected non-null collection when flag set.");
728
this.ObjectStateManager.
TransactionManager
.ProcessedEntities.Add(wrappedEntity);
1024
System.Data.Objects.Internal.TransactionManager transManager = ObjectStateManager.
TransactionManager
;
1029
this.ObjectStateManager.
TransactionManager
.OriginalMergeOption = wrappedEntity.MergeOption;
1145
Debug.Assert(this.ObjectStateManager.
TransactionManager
.TrackProcessedEntities, "Expected tracking processed entities to be true when adding.");
1146
Debug.Assert(this.ObjectStateManager.
TransactionManager
.ProcessedEntities != null, "Expected non-null collection when flag set.");
1148
this.ObjectStateManager.
TransactionManager
.ProcessedEntities.Add(wrappedEntity);
1176
Debug.Assert(this.ObjectStateManager.
TransactionManager
.TrackProcessedEntities, "Expected tracking processed entities to be true when adding.");
1177
Debug.Assert(this.ObjectStateManager.
TransactionManager
.ProcessedEntities != null, "Expected non-null collection when flag set.");
1179
this.ObjectStateManager.
TransactionManager
.ProcessedEntities.Add(wrappedEntity);
2109
ObjectStateManager.
TransactionManager
.BeginDetaching();
2116
ObjectStateManager.
TransactionManager
.EndDetaching();
System\Data\Objects\ObjectStateManager.cs (36)
750
if (this.
TransactionManager
.IsAttachTracking)
752
this.
TransactionManager
.PromotedKeyEntries.Add(wrappedEntity.Entity, keyEntry);
761
Debug.Assert(this.
TransactionManager
.IsAttachTracking || this.
TransactionManager
.IsAddTracking, "This method should be called only from ObjectContext.AttachTo/AddObject (indirectly)");
764
if (!this.
TransactionManager
.PromotedRelationships.TryGetValue(relatedEnd, out entities))
767
this.
TransactionManager
.PromotedRelationships.Add(relatedEnd, entities);
774
Debug.Assert(this.
TransactionManager
.IsAttachTracking || this.
TransactionManager
.IsAddTracking, "This method should be called only from the cleanup code");
776
foreach (var pair in this.
TransactionManager
.PromotedRelationships)
906
wrappedSource.Context.ObjectStateManager.
TransactionManager
.IsAttachTracking &&
916
if (inKeyEntryPromotion && wrappedSource.Context.ObjectStateManager.
TransactionManager
.IsAttachTracking)
972
context.ObjectStateManager.
TransactionManager
.BeginGraphUpdate();
1077
context.ObjectStateManager.
TransactionManager
.EndGraphUpdate();
2158
this.
TransactionManager
.BeginLocalPublicAPI();
2179
this.
TransactionManager
.EndLocalPublicAPI();
2294
this.
TransactionManager
.BeginLocalPublicAPI();
2308
this.
TransactionManager
.EndLocalPublicAPI();
2725
if (fireEvent && wrappedEntity.Entity != null && !
TransactionManager
.IsAttachTracking)
3084
if (this.
TransactionManager
.BeginDetectChanges())
3101
this.
TransactionManager
.BeginAlignChanges();
3106
this.
TransactionManager
.EndAlignChanges();
3107
this.
TransactionManager
.EndDetectChanges();
3114
TransactionManager tm = this.
TransactionManager
;
3336
TransactionManager tm = this.
TransactionManager
;
3433
TransactionManager
.EntityBeingReparented = targetReference.GetDependentEndOfReferentialConstraint(targetReference.ReferenceValue.Entity);
3441
TransactionManager
.EntityBeingReparented = reference.GetDependentEndOfReferentialConstraint(reference.ReferenceValue.Entity);
3455
TransactionManager
.EntityBeingReparented = null;
3461
TransactionManager tm = this.
TransactionManager
;
3536
TransactionManager
.EntityBeingReparented = reference.GetDependentEndOfReferentialConstraint(reference.ReferenceValue.Entity);
3544
TransactionManager
.EntityBeingReparented = null;
3572
TransactionManager
.EntityBeingReparented = reference.GetDependentEndOfReferentialConstraint(reference.ReferenceValue.Entity);
3580
TransactionManager
.EntityBeingReparented = null;
3615
if (
TransactionManager
.DeletedRelationshipsByForeignKey.TryGetValue(relatedEntity, out deletedRelationshipsByForeignKey) &&
3618
TransactionManager
.DeletedRelationshipsByGraph.TryGetValue(relatedEntity, out deletedRelationshipsByGraph) &&
3641
TransactionManager
.AddedRelationshipsByGraph.TryGetValue(wrappedOwner, out addedRelationshipsByGraph) &&
3652
TransactionManager tm = this.
TransactionManager
;