2 writes to IsAddTracking
System.Data.Entity (2)
System\Data\Objects\Internal\TransactionManager.cs (2)
223
this.
IsAddTracking
= true;
240
this.
IsAddTracking
= false;
13 references to IsAddTracking
System.Data.Entity (13)
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\RelatedEnd.cs (5)
1248
(this.ObjectContext.ObjectStateManager.TransactionManager.
IsAddTracking
||
1605
ObjectContext.ObjectStateManager.TransactionManager.
IsAddTracking
&&
1726
if (tm.
IsAddTracking
|| tm.IsAttachTracking)
1752
!(_context.ObjectStateManager.TransactionManager.IsAttachTracking || _context.ObjectStateManager.TransactionManager.
IsAddTracking
) ||
1818
!(this.ObjectContext.ObjectStateManager.TransactionManager.
IsAddTracking
||
System\Data\Objects\EntityEntry.cs (3)
2177
Debug.Assert(this.ObjectStateManager.TransactionManager.
IsAddTracking
||
3420
bool setIsLoaded = !(_cache.TransactionManager.IsAttachTracking || _cache.TransactionManager.
IsAddTracking
);
3556
Debug.Assert(_cache.TransactionManager.
IsAddTracking
|| _cache.TransactionManager.IsAttachTracking,
System\Data\Objects\Internal\TransactionManager.cs (2)
220
Debug.Assert(!this.
IsAddTracking
);
239
Debug.Assert(this.
IsAddTracking
);
System\Data\Objects\ObjectStateManager.cs (2)
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");