예제 #1
0
파일: SumAll.cs 프로젝트: softempire/RepoDb
 /// <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));
 }
예제 #2
0
파일: SumAll.cs 프로젝트: softempire/RepoDb
 /// <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));
 }