DataServiceContext.UpdateRelatedObject(Object, String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.