45 references to NoTracking
System.Data.Entity (44)
System\Data\Common\EntityUtil.cs (1)
1141
case MergeOption.
NoTracking
:
System\Data\Common\Internal\Materialization\Shaper.cs (1)
139
Debug.Assert(MergeOption.
NoTracking
!= this.MergeOption, "no need to HandleEntity if there's no tracking");
System\Data\Common\Internal\Materialization\Translator.cs (3)
1252
if (MergeOption.
NoTracking
!= _mergeOption)
1329
_mergeOption == MergeOption.
NoTracking
? MergeOption.
NoTracking
: MergeOption.AppendOnly, isProxy);
System\Data\Common\QueryCache\CompiledQueryCacheEntry.cs (1)
112
case MergeOption.
NoTracking
:
System\Data\Objects\DataClasses\EntityCollection.cs (2)
332
if (null != wrappedEntity.Context && wrappedEntity.MergeOption != MergeOption.
NoTracking
)
353
if (null != wrappedEntity.Context && wrappedEntity.MergeOption != MergeOption.
NoTracking
)
System\Data\Objects\DataClasses\EntityReference.cs (1)
425
bool isNoTracking = targetEntity != null && targetEntity.MergeOption == MergeOption.
NoTracking
;
System\Data\Objects\DataClasses\RelatedEnd.cs (7)
280
return UsingNoTracking ? MergeOption.
NoTracking
: MergeOption.AppendOnly;
684
if (UsingNoTracking != (mergeOption == MergeOption.
NoTracking
))
783
if (mergeOption == MergeOption.
NoTracking
)
1165
wrappedTarget.ResetContext(this.ObjectContext, GetTargetEntitySetFromRelationshipSet(), MergeOption.
NoTracking
);
2319
if (_context == context && (_usingNoTracking == (mergeOption == MergeOption.
NoTracking
)))
2331
this._usingNoTracking = (mergeOption == MergeOption.
NoTracking
);
2452
this.ObjectContext.ObjectStateManager.TransactionManager.OriginalMergeOption == MergeOption.
NoTracking
)
System\Data\Objects\DataClasses\RelationshipManager.cs (5)
535
if (wrappedOwner.Context != null && wrappedOwner.MergeOption != MergeOption.
NoTracking
)
589
if (wrappedOwner.Context != null && wrappedOwner.MergeOption != MergeOption.
NoTracking
)
943
Debug.Assert(wrappedOwner.Context == null || wrappedOwner.MergeOption == MergeOption.
NoTracking
, "Expected null context when initializing an existing related end");
955
Debug.Assert(wrappedOwner.Context == null || wrappedOwner.MergeOption == MergeOption.
NoTracking
, "Expected null context or NoTracking when initializing an existing related end");
1030
if (wrappedOwner.Context != null && wrappedOwner.MergeOption != MergeOption.
NoTracking
)
System\Data\Objects\EntityEntry.cs (1)
1660
this._cache.TransactionManager.OriginalMergeOption != MergeOption.
NoTracking
)
System\Data\Objects\Internal\BaseEntityWrapper.cs (6)
110
return (_flags & WrapperFlags.NoTracking) != 0 ? MergeOption.
NoTracking
: MergeOption.AppendOnly;
114
Debug.Assert(value == MergeOption.AppendOnly || value == MergeOption.
NoTracking
, "Merge option must be one of NoTracking or AppendOnly.");
115
if (value == MergeOption.
NoTracking
)
163
Debug.Assert(MergeOption.
NoTracking
== mergeOption ||
180
Context.ObjectStateManager.TransactionManager.OriginalMergeOption == MergeOption.
NoTracking
)
184
MergeOption = MergeOption.
NoTracking
;
System\Data\Objects\Internal\EntityWrapperFactory.cs (1)
305
wrapper.AttachContext(context, entitySet, MergeOption.
NoTracking
);
System\Data\Objects\Internal\NullEntityWrapper.cs (1)
115
return MergeOption.
NoTracking
;
System\Data\Objects\ObjectContext.cs (2)
1199
wrappedEntity.MergeOption != MergeOption.
NoTracking
)
2985
wrappedEntity.AttachContext(this, null, MergeOption.
NoTracking
);
System\Data\Objects\ObjectResult_TResultType.cs (1)
132
bool forceReadOnly = this._shaper.MergeOption == MergeOption.
NoTracking
;
System\Data\Objects\ObjectStateManager.cs (8)
822
case MergeOption.
NoTracking
:
877
if (mergeOption == MergeOption.
NoTracking
)
907
(setIsLoaded || mergeOption == MergeOption.
NoTracking
)),
939
if (mergeOption == MergeOption.
NoTracking
)
977
if (mergeOption == MergeOption.
NoTracking
)
999
if (mergeOption == MergeOption.
NoTracking
)
1004
MergeOption.
NoTracking
,
1165
Debug.Assert(mergeOption != MergeOption.
NoTracking
, "Existing relationships should not be updated with NoTracking");
System\Data\Objects\Span.cs (1)
46
return (mergeOption != MergeOption.
NoTracking
);
System\Data\Query\ResultAssembly\BridgeDataReader.cs (2)
142
const System.Data.Objects.MergeOption NoTracking = System.Data.Objects.MergeOption.
NoTracking
;
145
Shaper<RecordState> recordShaper = shaperFactory.Create(storeDataReader, null, workspace, System.Data.Objects.MergeOption.
NoTracking
, true);
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
912
result.MergeOption = MergeOption.
NoTracking
;