35 references to UsingNoTracking
System.Data.Entity (35)
System\Data\Objects\DataClasses\EntityCollection.cs (2)
649if (UsingNoTracking) 664if (UsingNoTracking)
System\Data\Objects\DataClasses\EntityReference.cs (4)
90if (this.ObjectContext != null && !UsingNoTracking) 173if (this.ObjectContext != null && !UsingNoTracking) 305!UsingNoTracking && 329Debug.Assert(this.ObjectContext != null && !UsingNoTracking, "Should only need to access AttachedEntityKey property on attached EntityReferences");
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (2)
133if (UsingNoTracking) 475if (WrappedOwner.Entity != null && WrappedOwner.Context != null && !UsingNoTracking)
System\Data\Objects\DataClasses\RelatedEnd.cs (26)
280return UsingNoTracking ? MergeOption.NoTracking : MergeOption.AppendOnly; 340if (UsingNoTracking) 363Debug.Assert(!(entityState != EntityState.Detached && UsingNoTracking), "Entity with NoTracking option cannot exist in the ObjectStateManager"); 370if (!((entityState == EntityState.Detached && UsingNoTracking) || 684if (UsingNoTracking != (mergeOption == MergeOption.NoTracking)) 689if (UsingNoTracking) 738if (UsingNoTracking || 903if (null == this.ObjectContext || UsingNoTracking) 938Debug.Assert(!UsingNoTracking, "We should not be here for NoTracking case."); 1085if (_context != null && !UsingNoTracking) 1151if (UsingNoTracking != targetRelatedEnd.UsingNoTracking) 1153throw EntityUtil.CannotCreateRelationshipBetweenTrackedAndNoTrackedEntities(UsingNoTracking ? 1160if (UsingNoTracking && targetRelatedEnd.UsingNoTracking) 1173else if ((_context == null || UsingNoTracking) && (targetRelatedEnd.ObjectContext != null && !targetRelatedEnd.UsingNoTracking)) 1232if (!this.IsForeignKey && !relationshipAlreadyExists && !UsingNoTracking) 1270if (!attachedRelatedEnd.UsingNoTracking) 1361Debug.Assert(!UsingNoTracking, "Should not be attempting to add graphs to the state manager with NoTracking related ends"); 1436if (!UsingNoTracking && 1570Debug.Assert(!UsingNoTracking, "Should not be trying to include entities in the state manager for NoTracking related ends"); 1749Debug.Assert(!UsingNoTracking, "Should not try to exclude entities from the state manager for NoTracking related ends."); 1782Debug.Assert(!UsingNoTracking, "Should not look for RelationshipEntry in ObjectStateManager for NoTracking cases."); 2107Debug.Assert(!UsingNoTracking, "Should not add an Entity to ObjectStateManager for NoTracking cases."); 2149Debug.Assert(!UsingNoTracking, "Should not add Relationship to ObjectStateManager for NoTracking cases.");
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
1123Debug.Assert(!relatedEnd.UsingNoTracking, "Shouldn't be touching the state manager with entities that were retrieved with NoTracking");