2 writes to IsAttachTracking
System.Data.Entity (2)
System\Data\Objects\Internal\TransactionManager.cs (2)
259
this.
IsAttachTracking
= true;
276
this.
IsAttachTracking
= false;
24 references to IsAttachTracking
System.Data.Entity (24)
System\Data\Objects\DataClasses\EntityCollection.cs (1)
418
Debug.Assert(tm.IsAddTracking || tm.
IsAttachTracking
, "Exclude being called while not part of attach/add rollback--PromotedEntityKeyRefs will be null.");
System\Data\Objects\DataClasses\EntityReference.cs (1)
635
if (!transManager.IsGraphUpdate && !transManager.
IsAttachTracking
&& !transManager.IsRelatedEndAdd)
System\Data\Objects\DataClasses\RelatedEnd.cs (6)
1249
this.ObjectContext.ObjectStateManager.TransactionManager.
IsAttachTracking
||
1726
if (tm.IsAddTracking || tm.
IsAttachTracking
)
1752
!(_context.ObjectStateManager.TransactionManager.
IsAttachTracking
|| _context.ObjectStateManager.TransactionManager.IsAddTracking) ||
1819
this.ObjectContext.ObjectStateManager.TransactionManager.
IsAttachTracking
))
2184
wrappedEntity.Context.ObjectStateManager.TransactionManager.
IsAttachTracking
&&
2451
this.ObjectContext.ObjectStateManager.TransactionManager.
IsAttachTracking
&&
System\Data\Objects\DataClasses\RelationshipManager.cs (2)
1094
Debug.Assert(doAttach == (transManager.
IsAttachTracking
), "In attach the recovery collection should be not null");
1096
if (transManager.
IsAttachTracking
&&
System\Data\Objects\EntityEntry.cs (5)
1659
if (!this._cache.TransactionManager.
IsAttachTracking
||
2178
this.ObjectStateManager.TransactionManager.
IsAttachTracking
, "Should be inside Attach or Add");
2194
if (ObjectStateManager.TransactionManager.
IsAttachTracking
&&
3420
bool setIsLoaded = !(_cache.TransactionManager.
IsAttachTracking
|| _cache.TransactionManager.IsAddTracking);
3556
Debug.Assert(_cache.TransactionManager.IsAddTracking || _cache.TransactionManager.
IsAttachTracking
,
System\Data\Objects\Internal\BaseEntityWrapper.cs (1)
179
Context.ObjectStateManager.TransactionManager.
IsAttachTracking
&&
System\Data\Objects\Internal\TransactionManager.cs (2)
258
Debug.Assert(!this.
IsAttachTracking
);
275
Debug.Assert(this.
IsAttachTracking
);
System\Data\Objects\ObjectStateManager.cs (6)
750
if (this.TransactionManager.
IsAttachTracking
)
761
Debug.Assert(this.TransactionManager.
IsAttachTracking
|| this.TransactionManager.IsAddTracking, "This method should be called only from ObjectContext.AttachTo/AddObject (indirectly)");
774
Debug.Assert(this.TransactionManager.
IsAttachTracking
|| this.TransactionManager.IsAddTracking, "This method should be called only from the cleanup code");
906
wrappedSource.Context.ObjectStateManager.TransactionManager.
IsAttachTracking
&&
916
if (inKeyEntryPromotion && wrappedSource.Context.ObjectStateManager.TransactionManager.
IsAttachTracking
)
2725
if (fireEvent && wrappedEntity.Entity != null && !TransactionManager.
IsAttachTracking
)