35 references to Deleted
System.Data.Services.Client (35)
System\Data\Services\Client\AtomMaterializer.cs (1)
1651
(this.mergeOption == MergeOption.PreserveChanges && state == EntityStates.
Deleted
);
System\Data\Services\Client\AtomMaterializerLog.cs (4)
147
if ((EntityStates.
Deleted
== this.context.GetEntityDescriptor(link.Target).State) ||
148
(EntityStates.
Deleted
== this.context.GetEntityDescriptor(link.Source).State))
170
if ((null != target) && (EntityStates.
Deleted
== this.context.GetEntityDescriptor(target).State) ||
171
(EntityStates.
Deleted
== this.context.GetEntityDescriptor(link.Source).State))
System\Data\Services\Client\Binding\BindingObserver.cs (5)
401
(source != null && !this.IsContextTrackingLink(source, sourceProperty, target) && targetDescriptor.State != EntityStates.
Deleted
));
448
if (targetDescriptor.State != EntityStates.
Deleted
&& !this.IsContextTrackingLink(source, sourceProperty, target))
469
if (targetDescriptor.State != EntityStates.
Deleted
&& !this.IsContextTrackingLink(source, sourceProperty, target))
675
if (targetDescriptor.State != EntityStates.
Deleted
)
956
return descriptor == null || descriptor.State == EntityStates.
Deleted
;
System\Data\Services\Client\DataServiceContext.cs (24)
942
case EntityStates.
Deleted
:
1293
bool delay = this.EnsureRelatable(source, sourceProperty, target, EntityStates.
Deleted
);
1314
if (EntityStates.
Deleted
!= existing.State)
1316
existing.State = EntityStates.
Deleted
;
1422
if (sourceResource.State == EntityStates.
Deleted
)
1533
else if (EntityStates.
Deleted
!= state)
1541
resource.State = EntityStates.
Deleted
;
2367
case EntityStates.
Deleted
:
2404
else if (EntityStates.
Deleted
== link.State)
2822
Debug.Assert(null != box && ((EntityStates.Added == state) || (EntityStates.Modified == state) || (EntityStates.
Deleted
== state)), "unexpected entity ResourceState");
2829
if ((null != box.ETag) && ((EntityStates.
Deleted
== state) || (EntityStates.Modified == state)))
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");
2857
if (EntityStates.
Deleted
!= box.State)
2862
if ((null != box.ETag) && (EntityStates.
Deleted
== box.State || EntityStates.Modified == box.State))
2881
case EntityStates.
Deleted
:
3073
if (EntityStates.
Deleted
!= entry.State)
3394
(parentOfTarget.State != EntityStates.
Deleted
||
3499
if (((EntityStates.Added == state) || (EntityStates.
Deleted
== state)) && (null == property.CollectionType))
3521
if ((sourceResource.State == EntityStates.
Deleted
) ||
3522
((targetResource != null) && (targetResource.State == EntityStates.
Deleted
)))
3529
if ((EntityStates.
Deleted
== state) || (EntityStates.Unchanged == state))
3535
if (EntityStates.
Deleted
== state)
3840
bool deletedState = (EntityStates.
Deleted
== box.State);
5618
else if (entry.State == EntityStates.
Deleted
)
System\Data\Services\Client\Descriptor.cs (1)
104
(EntityStates.
Deleted
== this.state),