/// <summary> /// Query all the data from the table in an asynchronous way. /// </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 Task <IEnumerable <TEntity> > QueryAllAsync(IEnumerable <OrderField> orderBy = null, string hints = null, string cacheKey = null, IDbTransaction transaction = null) { return(DbRepository.QueryAllAsync <TEntity>(orderBy: orderBy, hints: hints, cacheKey: cacheKey, transaction: transaction)); }
/// <summary> /// Query all the data from the table in an asynchronous way. /// </summary> /// <param name="fields">The mapping list of <see cref="Field"/> objects to be used.</param> /// <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> /// <param name="cancellationToken">The <see cref="CancellationToken"/> object to be used during the asynchronous operation.</param> /// <returns>An enumerable list of data entity objects.</returns> public Task <IEnumerable <TEntity> > QueryAllAsync(IEnumerable <Field> fields = null, IEnumerable <OrderField> orderBy = null, string hints = null, string cacheKey = null, IDbTransaction transaction = null, CancellationToken cancellationToken = default) { return(DbRepository.QueryAllAsync <TEntity>(fields: fields, orderBy: orderBy, hints: hints, cacheKey: cacheKey, transaction: transaction, cancellationToken: cancellationToken)); }