2 writes to IsAddTracking
System.Data.Entity (2)
System\Data\Objects\Internal\TransactionManager.cs (2)
223this.IsAddTracking = true; 240this.IsAddTracking = false;
13 references to IsAddTracking
System.Data.Entity (13)
System\Data\Objects\DataClasses\EntityCollection.cs (1)
418Debug.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 || 1605ObjectContext.ObjectStateManager.TransactionManager.IsAddTracking && 1726if (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)
2177Debug.Assert(this.ObjectStateManager.TransactionManager.IsAddTracking || 3420bool setIsLoaded = !(_cache.TransactionManager.IsAttachTracking || _cache.TransactionManager.IsAddTracking); 3556Debug.Assert(_cache.TransactionManager.IsAddTracking || _cache.TransactionManager.IsAttachTracking,
System\Data\Objects\Internal\TransactionManager.cs (2)
220Debug.Assert(!this.IsAddTracking); 239Debug.Assert(this.IsAddTracking);
System\Data\Objects\ObjectStateManager.cs (2)
761Debug.Assert(this.TransactionManager.IsAttachTracking || this.TransactionManager.IsAddTracking, "This method should be called only from ObjectContext.AttachTo/AddObject (indirectly)"); 774Debug.Assert(this.TransactionManager.IsAttachTracking || this.TransactionManager.IsAddTracking, "This method should be called only from the cleanup code");