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