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