DataServiceContext.UpdateRelatedObject(Object, String, Object) Method

Definition

Update a related object to the context.

public virtual void UpdateRelatedObject (object source, string sourceProperty, object target);
abstract member UpdateRelatedObject : obj * string * obj -> unit
override this.UpdateRelatedObject : obj * string * obj -> unit
Public Overridable Sub UpdateRelatedObject (source As Object, sourceProperty As String, target As Object)

Parameters

source
Object

The parent object that is being tracked by the context.

sourceProperty
String

The name of the navigation property that returns the related object based on an association between the two entities.

target
Object

The related object that is being updated.

Applies to