10 instantiations of LinkDescriptor
System.Data.Services.Client (10)
System\Data\Services\Client\AtomMaterializerLog.cs (3)
304
LinkDescriptor item = new
LinkDescriptor
(source.ResolvedObject, propertyName, target, EntityStates.Added);
348
LinkDescriptor item = new
LinkDescriptor
(source.ResolvedObject, propertyName, target, EntityStates.Detached);
373
LinkDescriptor item = new
LinkDescriptor
(source.ResolvedObject, propertyName, target, EntityStates.Modified);
System\Data\Services\Client\DataServiceContext.cs (6)
508
if (this.bindings.TryGetValue(new
LinkDescriptor
(source, sourceProperty, target), out link))
1225
LinkDescriptor relation = new
LinkDescriptor
(source, sourceProperty, target);
1267
LinkDescriptor relation = new
LinkDescriptor
(source, sourceProperty, target);
1296
LinkDescriptor relation = new
LinkDescriptor
(source, sourceProperty, target);
1350
relation = new
LinkDescriptor
(source, sourceProperty, target);
1786
LinkDescriptor relation = new
LinkDescriptor
(source, sourceProperty, target);
System\Data\Services\Client\EntityDescriptor.cs (1)
417
return new
LinkDescriptor
(this.parentDescriptor.entity, this.parentProperty, this.entity);
61 references to LinkDescriptor
System.Data.Services.Client (61)
System\Data\Services\Client\AtomMaterializerLog.cs (7)
47
private readonly List<
LinkDescriptor
> links;
75
this.links = new List<
LinkDescriptor
>();
142
foreach (
LinkDescriptor
link in this.links)
163
LinkDescriptor
end = this.context.GetLinks(link.Source, link.SourceProperty).FirstOrDefault();
304
LinkDescriptor
item = new LinkDescriptor(source.ResolvedObject, propertyName, target, EntityStates.Added);
348
LinkDescriptor
item = new LinkDescriptor(source.ResolvedObject, propertyName, target, EntityStates.Detached);
373
LinkDescriptor
item = new LinkDescriptor(source.ResolvedObject, propertyName, target, EntityStates.Modified);
System\Data\Services\Client\Binding\BindingObserver.cs (1)
944
return this.Context.GetLinkDescriptor(source, sourceProperty, target) != default(
LinkDescriptor
);
System\Data\Services\Client\DataServiceContext.cs (46)
111
private Dictionary<
LinkDescriptor
,
LinkDescriptor
> bindings = new Dictionary<
LinkDescriptor
,
LinkDescriptor
>(
LinkDescriptor
.EquivalenceComparer);
399
public ReadOnlyCollection<
LinkDescriptor
> Links
500
public
LinkDescriptor
GetLinkDescriptor(object source, string sourceProperty, object target)
506
LinkDescriptor
link;
1225
LinkDescriptor
relation = new LinkDescriptor(source, sourceProperty, target);
1266
LinkDescriptor
existing;
1267
LinkDescriptor
relation = new LinkDescriptor(source, sourceProperty, target);
1295
LinkDescriptor
existing = null;
1296
LinkDescriptor
relation = new LinkDescriptor(source, sourceProperty, target);
1347
LinkDescriptor
relation = this.DetachReferenceLink(source, sourceProperty, target, MergeOption.NoTracking);
1459
LinkDescriptor
end = targetResource.GetRelatedEnd();
1725
LinkDescriptor
end = this.bindings[resource.GetRelatedEnd()];
1761
LinkDescriptor
end = this.bindings[resource.GetRelatedEnd()];
1785
LinkDescriptor
existing = null;
1786
LinkDescriptor
relation = new LinkDescriptor(source, sourceProperty, target);
2137
internal IEnumerable<
LinkDescriptor
> GetLinks(object source, string sourceProperty)
2389
private static string GetLinkHttpMethod(
LinkDescriptor
link)
2417
private static void HandleResponsePost(
LinkDescriptor
entry)
2455
LinkDescriptor
link = (
LinkDescriptor
)entry;
2619
foreach (
LinkDescriptor
end in this.bindings.Values.Where(resource.IsRelatedEntity).ToList())
2654
private HttpWebRequest CreateRequest(
LinkDescriptor
binding)
2689
private Uri CreateRequestUri(EntityDescriptor sourceResource,
LinkDescriptor
binding)
2700
private Uri CreateRequestRelativeUri(
LinkDescriptor
binding)
2734
private void CreateRequestBatch(
LinkDescriptor
binding, StreamWriter text)
2766
private MemoryStream CreateRequestData(
LinkDescriptor
binding, bool newline)
3038
foreach (
LinkDescriptor
end in this.RelatedLinks(box))
3085
this.DetachExistingLink((
LinkDescriptor
)entry, false);
3135
foreach (
LinkDescriptor
end in this.RelatedLinks(entry))
3159
foreach (
LinkDescriptor
end in this.RelatedLinks((EntityDescriptor)entry))
3183
private IEnumerable<
LinkDescriptor
> RelatedLinks(EntityDescriptor box)
3185
foreach (
LinkDescriptor
end in this.bindings.Values)
3380
private void DetachExistingLink(
LinkDescriptor
existingLink, bool targetDelete)
3416
private
LinkDescriptor
DetachReferenceLink(object source, string sourceProperty, object target, MergeOption linkMerge)
3418
LinkDescriptor
existing = this.GetLinks(source, sourceProperty).FirstOrDefault();
4159
object target = ((
LinkDescriptor
)e).Target;
4334
Debug.Assert(this.ChangedEntries[this.entryIndex] is
LinkDescriptor
, "only expected RelatedEnd to presave");
4598
return this.Context.CreateRequest((
LinkDescriptor
)entry);
4826
LinkDescriptor
link = (
LinkDescriptor
)entry;
5163
this.Context.CreateRequestBatch((
LinkDescriptor
)entry, text);
5607
HandleResponsePost((
LinkDescriptor
)entry);
System\Data\Services\Client\EntityDescriptor.cs (2)
403
internal bool IsRelatedEntity(
LinkDescriptor
related)
412
internal
LinkDescriptor
GetRelatedEnd()
System\Data\Services\Client\LinkDescriptor.cs (5)
23
internal static readonly System.Collections.Generic.IEqualityComparer<
LinkDescriptor
> EquivalenceComparer = new Equivalent();
105
private sealed class Equivalent : System.Collections.Generic.IEqualityComparer<
LinkDescriptor
>
111
public bool Equals(
LinkDescriptor
x,
LinkDescriptor
y)
119
public int GetHashCode(
LinkDescriptor
obj)