2 writes to IsAttachTracking
System.Data.Entity (2)
System\Data\Objects\Internal\TransactionManager.cs (2)
259this.IsAttachTracking = true; 276this.IsAttachTracking = false;
24 references to IsAttachTracking
System.Data.Entity (24)
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\EntityReference.cs (1)
635if (!transManager.IsGraphUpdate && !transManager.IsAttachTracking && !transManager.IsRelatedEndAdd)
System\Data\Objects\DataClasses\RelatedEnd.cs (6)
1249this.ObjectContext.ObjectStateManager.TransactionManager.IsAttachTracking || 1726if (tm.IsAddTracking || tm.IsAttachTracking) 1752!(_context.ObjectStateManager.TransactionManager.IsAttachTracking || _context.ObjectStateManager.TransactionManager.IsAddTracking) || 1819this.ObjectContext.ObjectStateManager.TransactionManager.IsAttachTracking)) 2184wrappedEntity.Context.ObjectStateManager.TransactionManager.IsAttachTracking && 2451this.ObjectContext.ObjectStateManager.TransactionManager.IsAttachTracking &&
System\Data\Objects\DataClasses\RelationshipManager.cs (2)
1094Debug.Assert(doAttach == (transManager.IsAttachTracking), "In attach the recovery collection should be not null"); 1096if (transManager.IsAttachTracking &&
System\Data\Objects\EntityEntry.cs (5)
1659if (!this._cache.TransactionManager.IsAttachTracking || 2178this.ObjectStateManager.TransactionManager.IsAttachTracking, "Should be inside Attach or Add"); 2194if (ObjectStateManager.TransactionManager.IsAttachTracking && 3420bool setIsLoaded = !(_cache.TransactionManager.IsAttachTracking || _cache.TransactionManager.IsAddTracking); 3556Debug.Assert(_cache.TransactionManager.IsAddTracking || _cache.TransactionManager.IsAttachTracking,
System\Data\Objects\Internal\BaseEntityWrapper.cs (1)
179Context.ObjectStateManager.TransactionManager.IsAttachTracking &&
System\Data\Objects\Internal\TransactionManager.cs (2)
258Debug.Assert(!this.IsAttachTracking); 275Debug.Assert(this.IsAttachTracking);
System\Data\Objects\ObjectStateManager.cs (6)
750if (this.TransactionManager.IsAttachTracking) 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"); 906wrappedSource.Context.ObjectStateManager.TransactionManager.IsAttachTracking && 916if (inKeyEntryPromotion && wrappedSource.Context.ObjectStateManager.TransactionManager.IsAttachTracking) 2725if (fireEvent && wrappedEntity.Entity != null && !TransactionManager.IsAttachTracking)