/// <summary> /// Summarizes the target field from the database table in an asynchronous way. /// </summary> /// <param name="field">The field to be sumd.</param> /// <param name="where">The query expression to be used.</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 Task <object> SumAsync(Expression <Func <TEntity, object> > field, QueryGroup where = null, string hints = null, IDbTransaction transaction = null) { return(DbRepository.SumAsync <TEntity>(field: field, where : where, hints: hints, transaction: transaction)); }
/// <summary> /// Summarizes the target field from the database table in an asynchronous way. /// </summary> /// <param name="field">The field to be sumd.</param> /// <param name="where">The query expression to be used.</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 Task <object> SumAsync(Field field, IEnumerable <QueryField> where = null, string hints = null, IDbTransaction transaction = null) { return(DbRepository.SumAsync <TEntity>(field: field, where : where, hints: hints, transaction: transaction)); }
/// <summary> /// Computes the sum value of the target field in an asynchronous way. /// </summary> /// <param name="field">The field to be summarized.</param> /// <param name="where">The query expression to be used.</param> /// <param name="hints">The table hints to be used.</param> /// <param name="transaction">The transaction to be used.</param> /// <returns>The sum value of the target field.</returns> public Task <TResult> SumAsync <TResult>(Expression <Func <TEntity, TResult> > field, IEnumerable <QueryField> where = null, string hints = null, IDbTransaction transaction = null) { return(DbRepository.SumAsync <TEntity, TResult>(field: field, where : where, hints: hints, transaction: transaction)); }
/// <summary> /// Computes the sum value of the target field in an asynchronous way. /// </summary> /// <param name="field">The field to be summarized.</param> /// <param name="where">The query expression to be used.</param> /// <param name="hints">The table hints to be used.</param> /// <param name="transaction">The transaction to be used.</param> /// <returns>The sum value of the target field.</returns> public Task <TResult> SumAsync <TResult>(Field field, QueryGroup where = null, string hints = null, IDbTransaction transaction = null) { return(DbRepository.SumAsync <TEntity, TResult>(field: field, where : where, hints: hints, transaction: transaction)); }
/// <summary> /// Computes the sum value of the target field in an asynchronous way. /// </summary> /// <param name="field">The field to be summarized.</param> /// <param name="where">The query expression to be used.</param> /// <param name="hints">The table hints to be used.</param> /// <param name="transaction">The transaction to be used.</param> /// <param name="cancellationToken">The <see cref="CancellationToken"/> object to be used during the asynchronous operation.</param> /// <returns>The sum value of the target field.</returns> public Task <TResult> SumAsync <TResult>(Expression <Func <TEntity, TResult> > field, QueryGroup where = null, string hints = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return(DbRepository.SumAsync <TEntity, TResult>(field: field, where : where, hints: hints, transaction: transaction, cancellationToken: cancellationToken)); }
/// <summary> /// Computes the sum value of the target field in an asynchronous way. /// </summary> /// <param name="field">The field to be summarized.</param> /// <param name="where">The query expression to be used.</param> /// <param name="hints">The table hints to be used.</param> /// <param name="transaction">The transaction to be used.</param> /// <param name="cancellationToken">The <see cref="CancellationToken"/> object to be used during the asynchronous operation.</param> /// <returns>The sum value of the target field.</returns> public Task <TResult> SumAsync <TResult>(Field field, IEnumerable <QueryField> where = null, string hints = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return(DbRepository.SumAsync <TEntity, TResult>(field: field, where : where, hints: hints, transaction: transaction, cancellationToken: cancellationToken)); }
/// <summary> /// Computes the sum value of the target field in an asynchronous way. /// </summary> /// <param name="field">The field to be summarized.</param> /// <param name="where">The query expression to be used.</param> /// <param name="hints">The table hints to be used.</param> /// <param name="transaction">The transaction to be used.</param> /// <param name="cancellationToken">The <see cref="CancellationToken"/> object to be used during the asynchronous operation.</param> /// <returns>The sum value of the target field.</returns> public Task <object> SumAsync(Expression <Func <TEntity, object> > field, Expression <Func <TEntity, bool> > where = null, string hints = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return(DbRepository.SumAsync <TEntity>(field: field, where : where, hints: hints, transaction: transaction, cancellationToken: cancellationToken)); }
/// <summary> /// Computes the sum value of the target field in an asynchronous way. /// </summary> /// <param name="field">The field to be summarized.</param> /// <param name="where">The query expression to be used.</param> /// <param name="hints">The table hints to be used.</param> /// <param name="transaction">The transaction to be used.</param> /// <param name="cancellationToken">The <see cref="CancellationToken"/> object to be used during the asynchronous operation.</param> /// <returns>The sum value of the target field.</returns> public Task <object> SumAsync(Field field, QueryGroup where = null, string hints = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return(DbRepository.SumAsync <TEntity>(field: field, where : where, hints: hints, transaction: transaction, cancellationToken: cancellationToken)); }