4 instantiations of EntityDescriptor
System.Data.Services.Client (4)
System\Data\Services\Client\AtomMaterializerLog.cs (1)
116
EntityDescriptor descriptor = new
EntityDescriptor
(entity.Key, entry.QueryLink, entry.EditLink, entry.ResolvedObject, null, null, null, entry.ETagText, EntityStates.Unchanged);
System\Data\Services\Client\DataServiceContext.cs (3)
1388
EntityDescriptor resource = new
EntityDescriptor
(null, null /*selfLink*/, null /*editLink*/, entity, null, null, entitySetName, null, EntityStates.Added);
1447
EntityDescriptor targetResource = new
EntityDescriptor
(null, null, null, target, sourceResource, sourceProperty, null /*entitySetName*/, null, EntityStates.Added);
1505
EntityDescriptor descriptor = new
EntityDescriptor
(identity, null /* selfLink */, editLink, entity, null /* parent */, null /* parent property */, null /*entitySetName*/, etag, EntityStates.Unchanged);
88 references to EntityDescriptor
System.Data.Services.Client (88)
System\Data\Services\Client\AtomMaterializerLog.cs (3)
116
EntityDescriptor
descriptor = new EntityDescriptor(entity.Key, entry.QueryLink, entry.EditLink, entry.ResolvedObject, null, null, null, entry.ETagText, EntityStates.Unchanged);
138
EntityDescriptor
descriptor = this.context.GetEntityDescriptor(entry.ResolvedObject);
416
private void ApplyMediaEntryInformation(AtomEntry entry,
EntityDescriptor
descriptor)
System\Data\Services\Client\Binding\BindingObserver.cs (5)
393
EntityDescriptor
targetDescriptor = this.Context.GetEntityDescriptor(target);
610
EntityDescriptor
targetDescriptor = target != null ? this.Context.GetEntityDescriptor(target) : null;
701
return this.Context.GetEntityDescriptor(entity) != default(
EntityDescriptor
);
910
foreach (
var
ed in this.Context
955
EntityDescriptor
descriptor = this.Context.GetEntityDescriptor(entity);
System\Data\Services\Client\DataServiceContext.cs (77)
105
private Dictionary<object,
EntityDescriptor
> entityDescriptors = new Dictionary<object,
EntityDescriptor
>(EqualityComparer<object>.Default);
108
private Dictionary<String,
EntityDescriptor
> identityToDescriptor;
411
public ReadOnlyCollection<
EntityDescriptor
> Entities
478
public
EntityDescriptor
GetEntityDescriptor(object entity)
482
EntityDescriptor
descriptor;
772
EntityDescriptor
box = this.EnsureContained(entity, "entity");
916
EntityDescriptor
box = this.EnsureContained(entity, "entity");
1388
EntityDescriptor
resource = new EntityDescriptor(null, null /*selfLink*/, null /*editLink*/, entity, null, null, entitySetName, null, EntityStates.Added);
1419
EntityDescriptor
sourceResource = this.EnsureContained(source, "source");
1447
EntityDescriptor
targetResource = new EntityDescriptor(null, null, null, target, sourceResource, sourceProperty, null /*entitySetName*/, null, EntityStates.Added);
1505
EntityDescriptor
descriptor = new EntityDescriptor(identity, null /* selfLink */, editLink, entity, null /* parent */, null /* parent property */, null /*entitySetName*/, etag, EntityStates.Unchanged);
1522
EntityDescriptor
resource = null;
1556
EntityDescriptor
resource = null;
1575
EntityDescriptor
resource = null;
1625
EntityDescriptor
resource = null;
1717
EntityDescriptor
resource = this.entityDescriptors[entity];
1754
EntityDescriptor
resource = this.entityDescriptors[entity];
1842
internal
EntityDescriptor
InternalAttachEntityDescriptor(
EntityDescriptor
descriptor, bool failIfDuplicated)
1849
EntityDescriptor
resource;
1852
EntityDescriptor
existing;
2114
EntityDescriptor
resource = null;
2208
internal string GetServerTypeName(
EntityDescriptor
descriptor)
2434
EntityDescriptor
descriptor = (
EntityDescriptor
)entry;
2615
private bool DetachResource(
EntityDescriptor
resource)
2637
private void DetachResourceIdentity(
EntityDescriptor
resource)
2639
EntityDescriptor
existing = null;
2662
EntityDescriptor
sourceResource = this.entityDescriptors[binding.Source];
2663
EntityDescriptor
targetResource = (null != binding.Target) ? this.entityDescriptors[binding.Target] : null;
2689
private Uri CreateRequestUri(
EntityDescriptor
sourceResource, LinkDescriptor binding)
2707
EntityDescriptor
targetResource = this.entityDescriptors[binding.Target];
2736
EntityDescriptor
sourceResource = this.entityDescriptors[binding.Source];
2774
EntityDescriptor
targetResource = this.entityDescriptors[binding.Target];
2820
private HttpWebRequest CreateRequest(
EntityDescriptor
box, EntityStates state, bool replaceOnUpdate)
2843
private void CreateRequestBatch(
EntityDescriptor
box, StreamWriter text, bool replaceOnUpdate)
2875
private MemoryStream CreateRequestData(
EntityDescriptor
box, bool newline)
3033
private void CreateRequestDataLinks(
EntityDescriptor
box, XmlWriter writer)
3080
EntityDescriptor
resource = (
EntityDescriptor
)entry;
3094
private void HandleResponsePost(
EntityDescriptor
entry, MaterializeAtom materializer, Uri editLink, string etag)
3159
foreach (LinkDescriptor end in this.RelatedLinks((
EntityDescriptor
)entry))
3183
private IEnumerable<LinkDescriptor> RelatedLinks(
EntityDescriptor
box)
3191
EntityDescriptor
target = this.entityDescriptors[end.Target];
3234
EntityDescriptor
box = this.EnsureContained(entity, "entity");
3386
EntityDescriptor
targetResource = this.entityDescriptors[existingLink.Target];
3392
EntityDescriptor
parentOfTarget = targetResource.ParentForInsert;
3443
private
EntityDescriptor
EnsureContained(object resource, string parameterName)
3447
EntityDescriptor
box = null;
3474
EntityDescriptor
sourceResource = this.EnsureContained(source, "source");
3475
EntityDescriptor
targetResource = null;
3572
System.Threading.Interlocked.CompareExchange(ref this.identityToDescriptor, new Dictionary<String,
EntityDescriptor
>(EqualityComparer<String>.Default), null);
3605
EntityDescriptor
box = this.EnsureContained(entity, "entity");
3733
EntityDescriptor
box = context.EnsureContained(this.entity, "entity");
3830
private MaterializeAtom ReadPropertyFromAtom(
EntityDescriptor
box, ClientType.ClientProperty property)
4212
foreach (
EntityDescriptor
box in this.ChangedEntries.Where(e => e.IsResource).Cast<
EntityDescriptor
>())
4552
EntityDescriptor
box = (
EntityDescriptor
)this.ChangedEntries[this.entryIndex];
4575
EntityDescriptor
box = (
EntityDescriptor
)entry;
4611
private HttpWebRequest CheckAndProcessMediaEntryPost(
EntityDescriptor
entityDescriptor)
4711
private HttpWebRequest CheckAndProcessMediaEntryPut(
EntityDescriptor
box)
4776
private void SetupMediaResourceRequest(HttpWebRequest mediaResourceRequest,
EntityDescriptor
box)
4800
EntityDescriptor
box = (
EntityDescriptor
)entry;
4934
EntityDescriptor
entityDescriptor = (
EntityDescriptor
)entry;
5126
EntityDescriptor
entityDescriptor = entry as
EntityDescriptor
;
5515
EntityDescriptor
descriptor = (
EntityDescriptor
)entry;
5543
EntityDescriptor
entityDescriptor = (
EntityDescriptor
)entry;
5567
EntityDescriptor
descriptor = (
EntityDescriptor
)entry;
System\Data\Services\Client\EntityDescriptor.cs (3)
37
private
EntityDescriptor
parentDescriptor;
109
internal EntityDescriptor(String identity, Uri selfLink, Uri editLink, object entity,
EntityDescriptor
parentEntity, string parentProperty, string entitySetName, string etag, EntityStates state)
251
public
EntityDescriptor
ParentForInsert