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))); }
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);
public static Task <TEntity> MinAsync <TEntity>(this IQueryable <TEntity> source, CancellationToken cancellationToken = default) => MongoQueryable.MinAsync((IMongoQueryable <TEntity>)source, cancellationToken);