1 write to Context
System.Data.Services.Client (1)
System\Data\Services\Client\Binding\BindingObserver.cs (1)
46
this.
Context
= context;
37 references to Context
System.Data.Services.Client (37)
System\Data\Services\Client\Binding\BindingObserver.cs (35)
47
this.
Context
.ChangesSaved += this.OnChangesSaved;
145
this.
Context
.ChangesSaved -= this.OnChangesSaved;
374
if (this.
Context
.ApplyingChanges)
393
EntityDescriptor targetDescriptor = this.
Context
.GetEntityDescriptor(target);
409
this.
Context
,
432
targetDescriptor = this.
Context
.GetEntityDescriptor(target);
444
this.
Context
.AttachTo(targetEntitySet, target);
445
this.
Context
.AttachLink(source, sourceProperty, target);
453
this.
Context
.AttachLink(source, sourceProperty, target);
466
this.
Context
.AddRelatedObject(source, sourceProperty, target);
474
this.
Context
.AddLink(source, sourceProperty, target);
487
this.
Context
.AttachTo(targetEntitySet, target);
492
this.
Context
.AddObject(targetEntitySet, target);
512
if (this.
Context
.ApplyingChanges)
543
this.
Context
,
571
this.
Context
.Detach(target);
575
this.
Context
.DeleteObject(target);
593
if (this.
Context
.ApplyingChanges)
610
EntityDescriptor targetDescriptor = target != null ? this.
Context
.GetEntityDescriptor(target) : null;
626
this.
Context
,
647
targetDescriptor = target != null ? this.
Context
.GetEntityDescriptor(target) : null;
659
this.
Context
.AttachTo(targetEntitySet, target);
663
this.
Context
.AddObject(targetEntitySet, target);
666
targetDescriptor = this.
Context
.GetEntityDescriptor(target);
677
this.
Context
.AttachLink(source, sourceProperty, target);
682
this.
Context
.SetLink(source, sourceProperty, target);
691
this.
Context
.SetLink(source, sourceProperty, null);
701
return this.
Context
.GetEntityDescriptor(entity) != default(EntityDescriptor);
712
Debug.Assert(!this.AttachBehavior || this.
Context
.ApplyingChanges, "Entity updates must not happen during Attach or construction phases, deserialization case is the exception.");
714
if (this.
Context
.ApplyingChanges)
739
this.
Context
,
757
this.
Context
.UpdateObject(entity);
910
foreach (var ed in this.
Context
944
return this.
Context
.GetLinkDescriptor(source, sourceProperty, target) != default(LinkDescriptor);
955
EntityDescriptor descriptor = this.
Context
.GetEntityDescriptor(entity);
System\Data\Services\Client\Binding\DataServiceCollectionOfT.cs (2)
479
Debug.Assert(this.observer.
Context
!= null, "Must have valid context when the collection is being observed.");
643
if (this.observer.
Context
== null)