public static Task <bool> AnyAsyncLinqToDB <TSource>( this IQueryable <TSource> source, Expression <Func <TSource, bool> > predicate, CancellationToken token = default) => AsyncExtensions.AnyAsync(source.ToLinqToDB(), predicate, token);
/// <summary> /// Determines whether any element of a sequence satisfies a condition /// </summary> /// <typeparam name="TSource">The type of the elements of source</typeparam> /// <param name="source">A sequence whose elements to test for a condition</param> /// <param name="predicate">A function to test each element for a condition</param> /// <returns> /// true if any elements in the source sequence pass the test in the specified predicate; /// otherwise, false /// </returns> public static Task <bool> AnyAsync <TSource>(this IQueryable <TSource> source, Expression <Func <TSource, bool> > predicate = null) { return(predicate == null?AsyncExtensions.AnyAsync(source) : AsyncExtensions.AnyAsync(source, predicate)); }