EntitySetController<TEntity, TKey>.UpdateEntity Method (TKey, TEntity)
This method should be overridden to update an existing entity in the entity set.
Namespace: System.Web.Http.OData
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
protected internal virtual TEntity UpdateEntity(
TKey key,
TEntity update
)
public protected:
virtual TEntity UpdateEntity(
TKey key,
TEntity update
)
abstract UpdateEntity :
key:'TKey *
update:'TEntity -> 'TEntity
override UpdateEntity :
key:'TKey *
update:'TEntity -> 'TEntity
Protected Friend Overridable Function UpdateEntity (
key As TKey,
update As TEntity
) As TEntity
Parameters
key
Type: TKeyThe entity key of the entity to update.
update
Type: TEntityThe updated entity.
Return Value
Type: TEntity
The updated entity.
See Also
EntitySetController<TEntity, TKey> Class
System.Web.Http.OData Namespace
Return to top