예제 #1
0
 /// <summary>
 /// Counts the number of table data from the database.
 /// </summary>
 /// <param name="where">The query expression to be used.</param>
 /// <param name="hints">The table hints to be used. See <see cref="SqlTableHints"/> class.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>An integer value that holds the number of data from the database.</returns>
 public long Count(IEnumerable <QueryField> where = null,
                   string hints = null,
                   IDbTransaction transaction = null)
 {
     return(DbRepository.Count <TEntity>(where : where,
                                         hints: hints,
                                         transaction: transaction));
 }
예제 #2
0
 /// <summary>
 /// Counts the number of table data from the database.
 /// </summary>
 /// <param name="where">The query expression to be used.</param>
 /// <param name="hints">The table hints to be used. See <see cref="SqlTableHints"/> class.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>An integer value that holds the number of data from the database.</returns>
 public long Count(QueryGroup where           = null,
                   string hints               = null,
                   IDbTransaction transaction = null)
 {
     return(DbRepository.Count <TEntity>(where : where,
                                         hints: hints,
                                         transaction: transaction));
 }
예제 #3
0
 /// <summary>
 /// Counts the number of table data from the database.
 /// </summary>
 /// <param name="where">The query expression to be used.</param>
 /// <param name="hints">The table hints to be used. See <see cref="SqlTableHints"/> class.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>An integer value that holds the number of data from the database.</returns>
 public long Count(Expression <Func <TEntity, bool> > where = null,
                   string hints = null,
                   IDbTransaction transaction = null)
 {
     return(DbRepository.Count <TEntity>(where : where,
                                         hints: hints,
                                         transaction: transaction));
 }