1 write to MergeOption
System.Data.Entity (1)
System\Data\Common\Internal\Materialization\Shaper.cs (1)
34
this.
MergeOption
= mergeOption;
16 references to MergeOption
System.Data.Entity (16)
System\Data\Common\Internal\Materialization\Shaper.cs (14)
139
Debug.Assert(MergeOption.NoTracking != this.
MergeOption
, "no need to HandleEntity if there's no tracking");
140
Debug.Assert(MergeOption.AppendOnly != this.
MergeOption
, "use HandleEntityAppendOnly instead...");
183
Debug.Assert(this.
MergeOption
== MergeOption.AppendOnly, "only use HandleEntityAppendOnly when MergeOption is AppendOnly");
309
if (!ObjectStateManager.TryUpdateExistingRelationships(this.Context, this.
MergeOption
, associationSet, sourceMember, sourceKey, wrappedEntity, targetMember, targetKey, /*setIsLoaded*/ true, out newEntryState))
329
this.
MergeOption
,
377
this.
MergeOption
, wrappedEntity, sourceMember,
516
if (forceToTrue || this.
MergeOption
== MergeOption.OverwriteChanges)
670
(this.
MergeOption
== MergeOption.PreserveChanges ||
671
this.
MergeOption
== MergeOption.OverwriteChanges))
711
ObjectStateManager.RemoveRelationships(Context,
MergeOption
, associationSet, sourceKey, sourceMember);
732
int count = ObjectStateManager.UpdateRelationships(this.Context, this.
MergeOption
, (AssociationSet)relatedEnd.RelationshipSet, sourceMember, sourceKey, wrappedSource, targetMember, (List<T_TargetEntity>)spannedEntities, true);
759
if (MergeOption.AppendOnly !=
MergeOption
)
764
if (MergeOption.OverwriteChanges ==
MergeOption
)
777
Debug.Assert(MergeOption.PreserveChanges ==
MergeOption
, "not MergeOption.PreserveChanges");
System\Data\Objects\ELinq\InitializerFacet.cs (1)
502
coordinator.RegisterCloseHandler((readerState, elements) => result.Load(elements, readerState.
MergeOption
));
System\Data\Objects\ObjectResult_TResultType.cs (1)
132
bool forceReadOnly = this._shaper.
MergeOption
== MergeOption.NoTracking;