예제 #1
0
파일: QueryAll.cs 프로젝트: onuromer/RepoDb
 /// <summary>
 /// Query all the data from the table.
 /// </summary>
 /// <param name="orderBy">The order definition of the fields to be used.</param>
 /// <param name="hints">The table hints to be used.</param>
 /// <param name="cacheKey">
 /// The key to the cache item.By setting this argument, it will return the item from the cache if present, otherwise it will query the database.
 /// </param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>An enumerable list of data entity objects.</returns>
 public IEnumerable <TEntity> QueryAll(IEnumerable <OrderField> orderBy = null,
                                       string hints               = null,
                                       string cacheKey            = null,
                                       IDbTransaction transaction = null)
 {
     return(DbRepository.QueryAll <TEntity>(orderBy: orderBy,
                                            hints: hints,
                                            cacheKey: cacheKey,
                                            transaction: transaction));
 }