/// <summary> /// Computes the max value of the target field. /// </summary> /// <typeparam name="TResult">The type of the result.</typeparam> /// <param name="field">The field to be maximized.</param> /// <param name="hints">The table hints to be used.</param> /// <param name="transaction">The transaction to be used.</param> /// <returns>The max value of the target field.</returns> public TResult MaxAll <TResult>(Expression <Func <TEntity, TResult> > field, string hints = null, IDbTransaction transaction = null) { return(DbRepository.MaxAll <TEntity, TResult>(field: field, hints: hints, transaction: transaction)); }
/// <summary> /// Computes the max value of the target field. /// </summary> /// <param name="field">The field to be maximized.</param> /// <param name="hints">The table hints to be used.</param> /// <param name="transaction">The transaction to be used.</param> /// <returns>The max value of the target field.</returns> public object MaxAll(Field field, string hints = null, IDbTransaction transaction = null) { return(DbRepository.MaxAll <TEntity>(field: field, hints: hints, transaction: transaction)); }