4 writes to ResolvedObject
System.Data.Services.Client (4)
System\Data\Services\Client\AtomMaterializer.cs (4)
969this.CurrentEntry.ResolvedObject = this.TargetInstance; 1635entry.ResolvedObject = this.context.TryGetEntity(entry.Identity, entry.ETagText, this.mergeOption, out state); 1673entry.ResolvedObject = Activator.CreateInstance(type); 1716entry.ResolvedObject = existingEntry.ResolvedObject;
51 references to ResolvedObject
System.Data.Services.Client (51)
System\Data\Services\Client\AtomMaterializer.cs (40)
656result = entry.ResolvedObject; 685materializer.FoundNextLinkForUnmodifiedCollection(property.GetValue(entry.ResolvedObject) as IEnumerable); 716return entry.ResolvedObject; 800result = atomProperty.Entry.ResolvedObject; 853if (!requiredType.IsAssignableFrom(entry.ResolvedObject.GetType())) 857"a previously created instance of type '" + entry.ResolvedObject.GetType()); 877if (!requiredType.IsAssignableFrom(entry.ResolvedObject.GetType())) 879throw Error.InvalidOperation(Strings.Deserialize_Current(requiredType, entry.ResolvedObject.GetType())); 892return entry.ResolvedObject; 903return entry.ResolvedObject; 1191addMethod(list, feedEntry.ResolvedObject); 1573Debug.Assert(entry.ResolvedObject != null, "entry.ResolvedObject != null"); 1582property.GetValue(entry.ResolvedObject) == null) 1584property.SetValue(entry.ResolvedObject, list, property.PropertyName, false /* allowAdd */); 1603if (entry.ResolvedObject == null) 1612entry.ResolvedObject == this.TargetInstance, 1617entry.ActualType = ClientType.Create(entry.ResolvedObject.GetType()); 1636if (entry.ResolvedObject != null) 1638if (!expectedEntryType.IsInstanceOfType(entry.ResolvedObject)) 1640throw Error.InvalidOperation(Strings.Deserialize_Current(expectedEntryType, entry.ResolvedObject.GetType())); 1643entry.ActualType = ClientType.Create(entry.ResolvedObject.GetType()); 1670entry.ResolvedObject == null, 1690entry.ResolvedObject == null, 1713existingEntry.ResolvedObject != null, 1716entry.ResolvedObject = existingEntry.ResolvedObject; 1754Debug.Assert(entry.ResolvedObject != null, "entry.ResolvedObject != null"); 1785this.ApplyItemsToCollection(entry, property, feed.Entries.Select(e => e.ResolvedObject), feed.NextLink, continuationPlan); 1808object collection = entry.ShouldUpdateFromPayload ? GetOrCreateCollectionProperty(entry.ResolvedObject, property, null) : null; 1833this.FoundNextLinkForUnmodifiedCollection(property.GetValue(entry.ResolvedObject) as IEnumerable); 1840from x in this.context.GetLinks(entry.ResolvedObject, property.PropertyName) 1892entry.ResolvedObject == null || entry.ResolvedObject == this.targetInstance, 1898Debug.Assert(entry.ResolvedObject != null, "entry.ResolvedObject != null -- otherwise ResolveOrCreateInstnace didn't do its job"); 1910Debug.Assert(entry.ResolvedObject != null, "entry.ResolvedObject != null -- otherwise not resolved/created!"); 1962prop.SetValue(entry.ResolvedObject, e.Entry.ResolvedObject, e.Name, true /* allowAdd? */); 1963this.log.SetLink(entry, prop.PropertyName, e.Entry.ResolvedObject); 1969ApplyDataValue(actualType, e, this.ignoreMissingProperties, this.context, entry.ResolvedObject); 1973Debug.Assert(entry.ResolvedObject != null, "entry.ResolvedObject != null -- otherwise we didn't do any useful work"); 1976this.materializedObjectCallback(entry.Tag, entry.ResolvedObject);
System\Data\Services\Client\AtomMaterializerLog.cs (11)
112entry.ResolvedObject == this.insertRefreshObject || 116EntityDescriptor descriptor = new EntityDescriptor(entity.Key, entry.QueryLink, entry.EditLink, entry.ResolvedObject, null, null, null, entry.ETagText, EntityStates.Unchanged); 137Debug.Assert(entry.ResolvedObject != null, "entry.ResolvedObject != null -- otherwise it wasn't found"); 138EntityDescriptor descriptor = this.context.GetEntityDescriptor(entry.ResolvedObject); 235Debug.Assert(entry.ResolvedObject != null, "entry.ResolvedObject != null -- otherwise this is not a target"); 239this.context.AttachIdentity(entry.Identity, entry.QueryLink, entry.EditLink, entry.ResolvedObject, entry.ETagText); 241this.insertRefreshObject = entry.ResolvedObject; 304LinkDescriptor item = new LinkDescriptor(source.ResolvedObject, propertyName, target, EntityStates.Added); 317Debug.Assert(entry.ResolvedObject != null, "entry.ResolvedObject != null -- otherwise, what did we create?"); 348LinkDescriptor item = new LinkDescriptor(source.ResolvedObject, propertyName, target, EntityStates.Detached); 373LinkDescriptor item = new LinkDescriptor(source.ResolvedObject, propertyName, target, EntityStates.Modified);