30 references to Entity
System.Data.Services.Client (30)
System\Data\Services\Client\Binding\BindingObserver.cs (1)
915
ed.
Entity
,
System\Data\Services\Client\DataServiceContext.cs (29)
1845
Debug.Assert(null != descriptor.
Entity
&& ClientType.Create(descriptor.
Entity
.GetType()).IsEntityType, "must be entity type to attach");
1850
this.entityDescriptors.TryGetValue(descriptor.
Entity
, out resource);
1870
this.entityDescriptors.Add(descriptor.
Entity
, descriptor);
2124
Debug.Assert(null != resource.
Entity
, "null entity");
2125
return resource.
Entity
;
2210
Debug.Assert(descriptor != null && descriptor.
Entity
!= null, "Null descriptor or no entity in descriptor");
2215
Type entityType = descriptor.
Entity
.GetType();
2623
end.Target == resource.
Entity
&& resource.State == EntityStates.Added);
2628
bool flag = this.entityDescriptors.Remove(resource.
Entity
);
2715
Uri navigationPropertyUri = this.BaseUriWithSlash.MakeRelativeUri(DataServiceContext.GenerateEditLinkUri(this.BaseUriWithSlash, binding.SourceProperty, targetResource.
Entity
));
2827
Version requestVersion = ClientType.Create(box.
Entity
.GetType()).EpmIsV1Compatible ? Util.DataServiceVersion1 : Util.DataServiceVersion2;
2854
Version requestVersion = ClientType.Create(box.
Entity
.GetType()).EpmIsV1Compatible ? Util.DataServiceVersion1 : Util.DataServiceVersion2;
2908
ClientType type = ClientType.Create(box.
Entity
.GetType());
2928
using (EpmSyndicationContentSerializer s = new EpmSyndicationContentSerializer(type.EpmTargetTree, box.
Entity
, writer))
2975
this.WriteContentProperties(writer, type, box.
Entity
, type.HasEntityPropertyMappings ? type.EpmSourceTree.Root : null, out propertiesWritten);
2986
using (EpmCustomContentSerializer s = new EpmCustomContentSerializer(type.EpmTargetTree, box.
Entity
, writer))
3000
ReadingWritingEntityEventArgs args = new ReadingWritingEntityEventArgs(box.
Entity
, node.Root);
3045
clientType = ClientType.Create(box.
Entity
.GetType());
3108
this.AttachIdentity(identity, null /*queryLink*/, editLink, entry.
Entity
, etag);
3112
materializer.SetInsertingObject(entry.
Entity
);
3117
Debug.Assert(x == entry.
Entity
, "x == box.Entity, should have same object generated by response");
3187
if (end.Source == box.
Entity
)
4614
ClientType type = ClientType.Create(entityDescriptor.
Entity
.GetType());
4647
object mimeTypeValue = type.MediaDataMember.MimeTypeProperty.GetValue(entityDescriptor.
Entity
);
4661
object value = type.MediaDataMember.GetValue(entityDescriptor.
Entity
);
4946
this.Context.AttachLocation(entityDescriptor.
Entity
, location);
5132
ClientType type = ClientType.Create(entityDescriptor.
Entity
.GetType());
5566
QueryComponents qc = new QueryComponents(null, Util.DataServiceVersionEmpty, entityDescriptor.
Entity
.GetType(), null, null);