Share via


EntitySetController<TEntity, TKey>.UpdateEntity Method

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

'Declaration
Protected Friend Overridable Function UpdateEntity ( _
    key As TKey, _
    update As TEntity _
) As TEntity
'Usage
Dim key As TKey
Dim update As TEntity
Dim returnValue As TEntity

returnValue = Me.UpdateEntity(key, _
    update)
protected internal virtual TEntity UpdateEntity(
    TKey key,
    TEntity update
)
protected public:
virtual TEntity UpdateEntity(
    TKey key, 
    TEntity update
)
abstract UpdateEntity : 
        key:'TKey * 
        update:'TEntity -> 'TEntity 
override UpdateEntity : 
        key:'TKey * 
        update:'TEntity -> 'TEntity 
function UpdateEntity(
    key : TKey, 
    update : TEntity
) : TEntity

Parameters

  • key
    Type: TKey
    The entity key of the entity to update.
  • update
    Type: TEntity
    The updated entity.

Return Value

Type: TEntity
The updated entity.

See Also

Reference

EntitySetController<TEntity, TKey> Class

System.Web.Http.OData Namespace