AsyncEntitySetController<TEntity, TKey>.GetKey Method (TEntity)
This method should be overridden to get the entity key of the specified entity.
Namespace: System.Web.Http.OData
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
protected internal virtual TKey GetKey(
TEntity entity
)
public protected:
virtual TKey GetKey(
TEntity entity
)
abstract GetKey :
entity:'TEntity -> 'TKey
override GetKey :
entity:'TEntity -> 'TKey
Protected Friend Overridable Function GetKey (
entity As TEntity
) As TKey
Parameters
entity
Type: TEntityThe entity.
Return Value
Type: TKey
The entity key value
See Also
AsyncEntitySetController<TEntity, TKey> Class
System.Web.Http.OData Namespace
Return to top