Exemplo n.º 1
0
 /// <summary>
 /// Computes the max value of the target field in an asynchronous way.
 /// </summary>
 /// <param name="field">The field to be maximized.</param>
 /// <param name="hints">The table hints to be used.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>The max value of the target field.</returns>
 public Task <object> MaxAllAsync(Field field,
                                  string hints = null,
                                  IDbTransaction transaction = null)
 {
     return(DbRepository.MaxAllAsync <TEntity>(field: field,
                                               hints: hints,
                                               transaction: transaction));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Computes the max value of the target field in an asynchronous way.
 /// </summary>
 /// <typeparam name="TResult">The type of the result.</typeparam>
 /// <param name="field">The field to be maximized.</param>
 /// <param name="hints">The table hints to be used.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>The max value of the target field.</returns>
 public Task <TResult> MaxAllAsync <TResult>(Expression <Func <TEntity, TResult> > field,
                                             string hints = null,
                                             IDbTransaction transaction = null)
 {
     return(DbRepository.MaxAllAsync <TEntity, TResult>(field: field,
                                                        hints: hints,
                                                        transaction: transaction));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Computes the max value of the target field in an asynchronous way.
 /// </summary>
 /// <param name="field">The field to be maximized.</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 max value of the target field.</returns>
 public Task <object> MaxAllAsync(Field field,
                                  string hints = null,
                                  IDbTransaction transaction          = null,
                                  CancellationToken cancellationToken = default)
 {
     return(DbRepository.MaxAllAsync <TEntity>(field: field,
                                               hints: hints,
                                               transaction: transaction,
                                               cancellationToken: cancellationToken));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Computes the max value of the target field in an asynchronous way.
 /// </summary>
 /// <typeparam name="TResult">The type of the result.</typeparam>
 /// <param name="field">The field to be maximized.</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 max value of the target field.</returns>
 public Task <TResult> MaxAllAsync <TResult>(Expression <Func <TEntity, TResult> > field,
                                             string hints = null,
                                             IDbTransaction transaction          = null,
                                             CancellationToken cancellationToken = default)
 {
     return(DbRepository.MaxAllAsync <TEntity, TResult>(field: field,
                                                        hints: hints,
                                                        transaction: transaction,
                                                        cancellationToken: cancellationToken));
 }