AdapterExtensionMethods.FetchSingleAsync<T> Method (IDataAccessAdapter, DynamicQuery<T>, CancellationToken) |
Namespace: SD.LLBLGen.Pro.QuerySpec.Adapter
public static Task<T> FetchSingleAsync<T>( this IDataAccessAdapter adapter, DynamicQuery<T> query, CancellationToken cancellationToken )
Exception | Condition |
---|---|
NotSupportedException | |
NotSupportedException | Thrown if the resultset has 0 or 2 or more elements, as Single requires a single value in the resultset. |