/// <summary> /// Summarizes the target field from all data of the database table. /// </summary> /// <param name="field">The field to be sumd.</param> /// <param name="hints">The table hints to be used. See <see cref="SqlServerTableHints"/> class.</param> /// <param name="transaction">The transaction to be used.</param> /// <returns>The sum value.</returns> public object SumAll(Expression <Func <TEntity, object> > field, string hints = null, IDbTransaction transaction = null) { return(DbRepository.SumAll <TEntity>(field: field, hints: hints, transaction: transaction)); }
/// <summary> /// Summarizes the target field from all data of the database table. /// </summary> /// <param name="field">The field to be sumd.</param> /// <param name="hints">The table hints to be used. See <see cref="SqlServerTableHints"/> class.</param> /// <param name="transaction">The transaction to be used.</param> /// <returns>The sum value.</returns> public object SumAll(Field field, string hints = null, IDbTransaction transaction = null) { return(DbRepository.SumAll <TEntity>(field: field, hints: hints, transaction: transaction)); }