AsyncSelfServicingExtensionMethods.GetSingleAsync<T> Method (IDao, DynamicQuery<T>, ITransaction) |
Namespace: SD.LLBLGen.Pro.QuerySpec.SelfServicing
public static Task<T> GetSingleAsync<T>( this IDao dao, DynamicQuery<T> query, ITransaction transactionToUse )
Exception | Condition |
---|---|
NotSupportedException | |
NotSupportedException | Thrown if the resultset has 0 or 2 or more elements, as Single requires a single value in the resultset. |