48 references to Added
System.Data.Services.Client (48)
System\Data\Services\Client\AtomMaterializer.cs (1)
1841
where MergeOption.OverwriteChanges == this.mergeOption || EntityStates.
Added
!= x.State
System\Data\Services\Client\AtomMaterializerLog.cs (2)
144
if (EntityStates.
Added
== link.State)
304
LinkDescriptor item = new LinkDescriptor(source.ResolvedObject, propertyName, target, EntityStates.
Added
);
System\Data\Services\Client\Binding\BindingObserver.cs (1)
912
.Where(x => x.ParentEntity == currentEntity && x.State == EntityStates.
Added
))
System\Data\Services\Client\DataServiceContext.cs (42)
933
case EntityStates.
Added
:
1223
this.EnsureRelatable(source, sourceProperty, target, EntityStates.
Added
);
1231
relation.State = EntityStates.
Added
;
1297
if (this.bindings.TryGetValue(relation, out existing) && (EntityStates.
Added
== existing.State))
1388
EntityDescriptor resource = new EntityDescriptor(null, null /*selfLink*/, null /*editLink*/, entity, null, null, entitySetName, null, EntityStates.
Added
);
1447
EntityDescriptor targetResource = new EntityDescriptor(null, null, null, target, sourceResource, sourceProperty, null /*entitySetName*/, null, EntityStates.
Added
);
1460
end.State = EntityStates.
Added
;
1529
if (EntityStates.
Added
== state)
1799
if ((EntityStates.
Added
== existing.State) ||
2379
case EntityStates.
Added
:
2410
Debug.Assert(EntityStates.
Added
== link.State, "not Added state");
2419
if (!((EntityStates.
Added
== entry.State) || (EntityStates.Modified == entry.State && null != entry.Target)))
2456
if ((EntityStates.
Added
== entry.State) || (EntityStates.Modified == entry.State))
2623
end.Target == resource.Entity && resource.State == EntityStates.
Added
);
2670
Debug.Assert(EntityStates.
Added
== sourceResource.State, "expected added state");
2677
Debug.Assert(EntityStates.
Added
== targetResource.State, "expected added state");
2704
if (collection && (EntityStates.
Added
!= binding.State))
2753
if ((EntityStates.
Added
== binding.State) || (EntityStates.Modified == binding.State && (null != binding.Target)))
2769
(binding.State == EntityStates.
Added
) ||
2822
Debug.Assert(null != box && ((EntityStates.
Added
== state) || (EntityStates.Modified == state) || (EntityStates.Deleted == state)), "unexpected entity ResourceState");
2847
Debug.Assert(box.State == EntityStates.
Added
|| box.State == EntityStates.Deleted || box.State == EntityStates.Modified, "the entity must be in one of the 3 possible states");
2884
case EntityStates.
Added
:
2957
if (EntityStates.
Added
== box.State)
3035
Debug.Assert(EntityStates.
Added
== box.State, "entity not added state");
3098
if (EntityStates.
Added
!= entry.State && StreamStates.Added != entry.StreamState)
3141
if (IncludeLinkState(end.SaveResultWasProcessed) || end.SaveResultWasProcessed == EntityStates.
Added
)
3157
if (entry.IsResource && (EntityStates.
Added
== entry.State))
3210
((0 == target.SaveResultWasProcessed && EntityStates.
Added
== target.State) ||
3211
(EntityStates.
Added
== target.SaveResultWasProcessed))))
3240
if (EntityStates.
Added
== box.State)
3499
if (((EntityStates.
Added
== state) || (EntityStates.Deleted == state)) && (null == property.CollectionType))
3519
if ((EntityStates.
Added
== state) || (EntityStates.Unchanged == state))
3531
if ((sourceResource.State == EntityStates.
Added
) ||
3532
((targetResource != null) && (targetResource.State == EntityStates.
Added
)))
3735
if (EntityStates.
Added
== box.State)
4336
this.ChangedEntries[this.entryIndex].State == EntityStates.
Added
||
4584
else if ((EntityStates.
Added
== entry.State) && (null != (req = this.CheckAndProcessMediaEntryPost(box))))
4827
if ((EntityStates.
Added
== link.State) ||
4936
if (entry.State == EntityStates.
Added
||
4971
entry.State = EntityStates.
Added
;
5129
if (entityDescriptor.State == EntityStates.
Added
)
5533
if (streamState == StreamStates.Added || entry.State == EntityStates.
Added
)
System\Data\Services\Client\Descriptor.cs (1)
101
(EntityStates.
Added
== this.state) ||
System\Data\Services\Client\EntityDescriptor.cs (1)
476
Debug.Assert(this.State == EntityStates.
Added
, "the entity must be in added state");