Condividi tramite


TableController<TData>.LookupAsync(String) Metodo

Definizione

Fornisce un metodo helper per cercare un'entità in un archivio back-end. Gestisce eventuali eccezioni generate dall'oggetto IDomainManager<TData> e le esegue il mapping in risposte HTTP appropriate.

protected virtual 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>>
override this.LookupAsync : string -> System.Threading.Tasks.Task<System.Web.Http.SingleResult<'Data>>
Protected Overridable Function LookupAsync (id As String) As Task(Of SingleResult(Of TData))

Parametri

id
String

Restituisce

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

Oggetto System.Web.Http.SingleResult`1 restituito da IDomainManager<TData>.

Si applica a