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