EntitySetController<TEntity, TKey>.Get Method
Namespace: System.Web.Http.OData
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
Get() | This method should be overridden to handle GET requests that attempt to retrieve entities from the entity set. |
|
Get(TKey) | Handles GET requests that attempt to retrieve an individual entity by key from the entity set. |
See Also
EntitySetController<TEntity, TKey> Class
System.Web.Http.OData Namespace
Return to top
EntitySetController<TEntity, TKey>.Get Method ()
This method should be overridden to handle GET requests that attempt to retrieve entities from the entity set.
Syntax
public virtual IQueryable<TEntity> Get()
public:
virtual IQueryable<TEntity>^ Get()
abstract Get : unit -> IQueryable<'TEntity>
override Get : unit -> IQueryable<'TEntity>
Public Overridable Function Get As IQueryable(Of TEntity)
Return Value
Type: System.Linq.IQueryable<TEntity>
The matching entities from the entity set.
Return to top
EntitySetController<TEntity, TKey>.Get Method (TKey)
Handles GET requests that attempt to retrieve an individual entity by key from the entity set.
Syntax
public virtual HttpResponseMessage Get(
TKey key
)
public:
virtual HttpResponseMessage^ Get(
TKey key
)
abstract Get :
key:'TKey -> HttpResponseMessage
override Get :
key:'TKey -> HttpResponseMessage
Public Overridable Function Get (
key As TKey
) As HttpResponseMessage
Parameters
key
Type: TKeyThe entity key of the entity to retrieve.
Return Value
Type: System.Net.Http.HttpResponseMessage
The response message to send back to the client.
Return to top