DomainManager<TData>.LookupAsync(String) Method

Definition

Looks up a single item in the backend store.

public abstract System.Threading.Tasks.Task<System.Web.Http.SingleResult<TData>> LookupAsync (string id);
abstract member LookupAsync : string -> System.Threading.Tasks.Task<System.Web.Http.SingleResult<'Data>>
Public MustOverride Function LookupAsync (id As String) As Task(Of SingleResult(Of TData))

Parameters

id
String

The id representing the item. The id is provided as part of the ITableData and is visible to the client. However, depending on the backend store and the domain model, the particular implementation may map the id to some other form of unique identifier.

Returns

Task<System.Web.Http.SingleResult<TData>>

A System.Web.Http.SingleResult`1 representing the result of the lookup. A System.Web.Http.SingleResult`1 represents an IQueryable containing zero or one entities. This allows it to be composed with further querying such as $select.

Implements

Remarks

See also QueryAsync which is the companion method for executing a query for multiple items.

Applies to