Executes the query, converting the first record to the specified type.
public ValueTask<T> QuerySingleAsync<T>(CancellationToken cancellationToken = default)
Throws InvalidOperationException if no records are returned, or if more than one record is returned.
Executes the query, converting the first record to the specified type with the specified delegate.
public ValueTask<T> QuerySingleAsync<T>(Func<IDataRecord, T> map,
CancellationToken cancellationToken = default)
Throws InvalidOperationException if no records are returned, or if more than one record is returned.