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