2 writes to Identity
System.Data.Services.Client (2)
System\Data\Services\Client\DataServiceContext.cs (2)
1730
resource.
Identity
= identity; // always attach the identity
1765
resource.
Identity
= identity; // always attach the identity
20 references to Identity
System.Data.Services.Client (20)
System\Data\Services\Client\DataServiceContext.cs (18)
1628
(null != resource.
Identity
) &&
1629
Object.ReferenceEquals(resource, this.identityToDescriptor[resource.
Identity
]))
1632
string identityUri = Util.DereferenceIdentity(resource.
Identity
);
1844
Debug.Assert((null != descriptor.
Identity
), "must have identity");
1853
this.identityToDescriptor.TryGetValue(descriptor.
Identity
, out existing);
1871
this.identityToDescriptor.Add(descriptor.
Identity
, descriptor);
2640
if ((null != resource.
Identity
) &&
2641
this.identityToDescriptor.TryGetValue(resource.
Identity
, out existing) &&
2644
bool removed = this.identityToDescriptor.Remove(resource.
Identity
);
2666
if (null == sourceResource.
Identity
)
2673
else if ((null != targetResource) && (null == targetResource.
Identity
))
2681
Debug.Assert(null != sourceResource.
Identity
, "missing sourceResource.Identity");
2738
if (null != sourceResource.
Identity
)
2780
if (null != targetResource.
Identity
)
2949
writer.WriteElementString(XmlConstants.AtomIdElementName, Util.DereferenceIdentity(box.
Identity
));
3116
Debug.Assert(null != entry.
Identity
, "updated inserted should always gain an identity");
3119
Debug.Assert((null != this.identityToDescriptor) && this.identityToDescriptor.ContainsKey(entry.
Identity
), "should have identity tracked");
3209
((null != target.
Identity
) && (target.ChangeOrder < box.ChangeOrder) &&
System\Data\Services\Client\EntityDescriptor.cs (2)
383
if (this.parentDescriptor.
Identity
== null)
415
Debug.Assert(this.
Identity
== null, "If the identity is set, it means that the edit link no longer has the property name");