DataServiceContext.UpdateObject Method

Definition

Overloads

UpdateObject(Object)

Changes the state of the specified object in the DataServiceContext to Modified.

UpdateObject(Object, Object[])

Changes the state of the specified object in the DataServiceContext to Modified.

UpdateObject(Object)

Changes the state of the specified object in the DataServiceContext to Modified.

public virtual void UpdateObject (object entity);
abstract member UpdateObject : obj -> unit
override this.UpdateObject : obj -> unit
Public Overridable Sub UpdateObject (entity As Object)

Parameters

entity
Object

The tracked entity to be assigned to the Modified state.

Exceptions

When entity is null.

When entity is in the Detached state.

Applies to

UpdateObject(Object, Object[])

Changes the state of the specified object in the DataServiceContext to Modified.

public virtual void UpdateObject (object entity, params object[] dependsOnObjects);
abstract member UpdateObject : obj * obj[] -> unit
override this.UpdateObject : obj * obj[] -> unit
Public Overridable Sub UpdateObject (entity As Object, ParamArray dependsOnObjects As Object())

Parameters

entity
Object

The tracked entity to be assigned to the Modified state.

dependsOnObjects
Object[]

DependsOnIds for the modified entity.

Exceptions

When entity is null.

When entity is in the Detached state.

Applies to