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