コード例 #1
0
        internal static Task <TResult> MinAsync <T, TResult>(this IQueryable <T> queryable, Expression <Func <T, TResult> > filter)
        {
            if (queryable is IMongoQueryable <T> mongoQueryable)
            {
                return(MongoQueryable.MinAsync(mongoQueryable, filter));
            }

            return(Task.FromResult(Queryable.Min(queryable, filter)));
        }
コード例 #2
0
 public static Task <TResult> MinAsync <TEntity, TResult>(this IQueryable <TEntity> source, Expression <Func <TEntity, TResult> > selector, CancellationToken cancellationToken = default)
 => MongoQueryable.MinAsync((IMongoQueryable <TEntity>)source, selector, cancellationToken);
コード例 #3
0
 public static Task <TEntity> MinAsync <TEntity>(this IQueryable <TEntity> source, CancellationToken cancellationToken = default)
 => MongoQueryable.MinAsync((IMongoQueryable <TEntity>)source, cancellationToken);