DataServiceContext.UpdateObject 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.
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
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
- dependsOnObjects
- Object[]
DependsOnIds for the modified entity.
Exceptions
When entity
is null.
When entity
is in the Detached state.