50 references to MergeOption
System.Data.Services.Client (50)
System\Data\Services\Client\AtomMaterializer.cs (12)
207
private readonly
MergeOption
mergeOption;
254
MergeOption
mergeOption,
1615
this.mergeOption ==
MergeOption
.OverwriteChanges || this.mergeOption ==
MergeOption
.PreserveChanges,
1619
entry.ShouldUpdateFromPayload = this.mergeOption ==
MergeOption
.PreserveChanges ? false : true;
1631
bool tracking = this.mergeOption !=
MergeOption
.NoTracking;
1649
this.mergeOption ==
MergeOption
.OverwriteChanges ||
1650
(this.mergeOption ==
MergeOption
.PreserveChanges && state == EntityStates.Unchanged) ||
1651
(this.mergeOption ==
MergeOption
.PreserveChanges && state == EntityStates.Deleted);
1837
if (this.mergeOption ==
MergeOption
.OverwriteChanges || this.mergeOption ==
MergeOption
.PreserveChanges)
1841
where
MergeOption
.OverwriteChanges == this.mergeOption || EntityStates.Added != x.State
System\Data\Services\Client\AtomMaterializerLog.cs (7)
50
private readonly
MergeOption
mergeOption;
67
internal AtomMaterializerLog(DataServiceContext context,
MergeOption
mergeOption)
87
return this.mergeOption !=
MergeOption
.NoTracking;
100
this.mergeOption !=
MergeOption
.OverwriteChanges || this.foundEntriesWithMedia.Count == 0,
161
if (
MergeOption
.PreserveChanges == this.mergeOption)
207
if (this.mergeOption ==
MergeOption
.OverwriteChanges)
323
if (this.mergeOption ==
MergeOption
.AppendOnly)
System\Data\Services\Client\DataServiceContext.cs (22)
83
private
MergeOption
mergeOption;
179
this.mergeOption =
MergeOption
.AppendOnly;
267
public
MergeOption
MergeOption
1248
this.AttachLink(source, sourceProperty, target,
MergeOption
.NoTracking);
1347
LinkDescriptor relation = this.DetachReferenceLink(source, sourceProperty, target,
MergeOption
.NoTracking);
1606
entity = (TEntity)this.TryGetEntity(Util.ReferenceIdentity(CommonUtil.UriToString(identity)), null,
MergeOption
.AppendOnly, out state);
1781
internal void AttachLink(object source, string sourceProperty, object target,
MergeOption
linkMerge)
1791
case
MergeOption
.AppendOnly:
1794
case
MergeOption
.OverwriteChanges:
1798
case
MergeOption
.PreserveChanges:
1808
case
MergeOption
.NoTracking: // public API point should throw if link exists
1820
else if (!((
MergeOption
.AppendOnly == linkMerge) ||
1821
(
MergeOption
.PreserveChanges == linkMerge && EntityStates.Modified == existing.State)))
2109
internal object TryGetEntity(String resourceUri, string etag,
MergeOption
merger, out EntityStates state)
2119
if ((null != etag) && (
MergeOption
.AppendOnly != merger))
3416
private LinkDescriptor DetachReferenceLink(object source, string sourceProperty, object target,
MergeOption
linkMerge)
3422
(
MergeOption
.AppendOnly == linkMerge) ||
3423
(
MergeOption
.PreserveChanges == linkMerge && EntityStates.Modified == existing.State))
3908
if ((null != child) && (
MergeOption
.NoTracking != materializer.MergeOptionValue) && clientType.IsEntityType)
5568
MergeOption
mergeOption =
MergeOption
.OverwriteChanges;
5575
mergeOption =
MergeOption
.PreserveChanges;
System\Data\Services\Client\MaterializeFromAtom.cs (3)
32
internal readonly
MergeOption
MergeOptionValue;
102
internal MaterializeAtom(DataServiceContext context, XmlReader reader, QueryComponents queryComponents, ProjectionPlan plan,
MergeOption
mergeOption)
154
private MaterializeAtom(DataServiceContext context, XmlReader reader, Type type,
MergeOption
mergeOption)
System\Data\Services\Client\Util.cs (6)
201
internal static
MergeOption
CheckEnumerationValue(
MergeOption
value, string parameterName)
205
case
MergeOption
.AppendOnly:
206
case
MergeOption
.OverwriteChanges:
207
case
MergeOption
.PreserveChanges:
208
case
MergeOption
.NoTracking: