Asynchronously returns the first record from the query result.
Namespace: NReco.DataAssembly: NReco.Data (in NReco.Data.dll) Version: 1.0.2
public Task<T> SingleAsync<T>(
CancellationToken cancel
)
public Task<T> SingleAsync<T>(
CancellationToken cancel
)
Public Function SingleAsync(Of T) (
cancel As CancellationToken
) As Task(Of T)
Public Function SingleAsync(Of T) (
cancel As CancellationToken
) As Task(Of T)
public:
generic<typename T>
virtual Task<T>^ SingleAsync(
CancellationToken cancel
) sealed
public:
generic<typename T>
virtual Task<T>^ SingleAsync(
CancellationToken cancel
) sealed
abstract SingleAsync :
cancel : CancellationToken -> Task<'T>
override SingleAsync :
cancel : CancellationToken -> Task<'T>
abstract SingleAsync :
cancel : CancellationToken -> Task<'T>
override SingleAsync :
cancel : CancellationToken -> Task<'T>
- T
Return Value
Type:
Task T depending on T, single value or all fields values from the first record
Implements
IQueryModelResult SingleAsync T (CancellationToken)