6 writes to AttachBehavior
System.Data.Services.Client (6)
System\Data\Services\Client\Binding\BindingObserver.cs (4)
129
this.
AttachBehavior
= true;
136
this.
AttachBehavior
= false;
216
this.
AttachBehavior
= true;
225
this.
AttachBehavior
= false;
System\Data\Services\Client\Binding\DataServiceCollectionOfT.cs (2)
648
this.observer.
AttachBehavior
= true;
659
this.observer.
AttachBehavior
= false;
9 references to AttachBehavior
System.Data.Services.Client (9)
System\Data\Services\Client\Binding\BindingObserver.cs (9)
399
bool contextOperationRequired = !this.
AttachBehavior
&&
436
if (this.
AttachBehavior
)
484
if (this.
AttachBehavior
)
524
Debug.Assert(!this.
AttachBehavior
, "AttachBehavior is only allowed during Construction and Load when this method should never be entered.");
616
bool contextOperationRequired = !this.
AttachBehavior
&&
657
if (this.
AttachBehavior
)
673
if (this.
AttachBehavior
)
688
Debug.Assert(!this.
AttachBehavior
, "During attach operations we must never perform operations for null values.");
712
Debug.Assert(!this.
AttachBehavior
|| this.Context.ApplyingChanges, "Entity updates must not happen during Attach or construction phases, deserialization case is the exception.");