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