예제 #1
0
파일: Min.cs 프로젝트: BieleckiLtd/RepoDB
 /// <summary>
 /// Computes the min value of the target field.
 /// </summary>
 /// <param name="field">The field to be minimized.</param>
 /// <param name="where">The query expression to be used.</param>
 /// <param name="hints">The table hints to be used.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>The min value of the target field.</returns>
 public object Min(Field field,
                   QueryGroup where           = null,
                   string hints               = null,
                   IDbTransaction transaction = null)
 {
     return(DbRepository.Min <TEntity>(field: field,
                                       where : where,
                                       hints: hints,
                                       transaction: transaction));
 }
예제 #2
0
파일: Min.cs 프로젝트: BieleckiLtd/RepoDB
 /// <summary>
 /// Computes the min value of the target field.
 /// </summary>
 /// <param name="field">The field to be minimized.</param>
 /// <param name="where">The query expression to be used.</param>
 /// <param name="hints">The table hints to be used.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>The min value of the target field.</returns>
 public object Min(Field field,
                   Expression <Func <TEntity, bool> > where = null,
                   string hints = null,
                   IDbTransaction transaction = null)
 {
     return(DbRepository.Min <TEntity>(field: field,
                                       where : where,
                                       hints: hints,
                                       transaction: transaction));
 }
예제 #3
0
파일: Min.cs 프로젝트: BieleckiLtd/RepoDB
 /// <summary>
 /// Computes the min value of the target field.
 /// </summary>
 /// <param name="field">The field to be minimized.</param>
 /// <param name="where">The query expression to be used.</param>
 /// <param name="hints">The table hints to be used.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>The min value of the target field.</returns>
 public TResult Min <TResult>(Field field,
                              IEnumerable <QueryField> where = null,
                              string hints = null,
                              IDbTransaction transaction = null)
 {
     return(DbRepository.Min <TEntity, TResult>(field: field,
                                                where : where,
                                                hints: hints,
                                                transaction: transaction));
 }
예제 #4
0
파일: Min.cs 프로젝트: BieleckiLtd/RepoDB
 /// <summary>
 /// Computes the min value of the target field.
 /// </summary>
 /// <param name="field">The field to be minimized.</param>
 /// <param name="where">The query expression to be used.</param>
 /// <param name="hints">The table hints to be used.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>The min value of the target field.</returns>
 public TResult Min <TResult>(Expression <Func <TEntity, TResult> > field,
                              QueryGroup where           = null,
                              string hints               = null,
                              IDbTransaction transaction = null)
 {
     return(DbRepository.Min <TEntity, TResult>(field: field,
                                                where : where,
                                                hints: hints,
                                                transaction: transaction));
 }
예제 #5
0
파일: Min.cs 프로젝트: BieleckiLtd/RepoDB
 /// <summary>
 /// Computes the min value of the target field.
 /// </summary>
 /// <param name="field">The field to be minimized.</param>
 /// <param name="where">The query expression to be used.</param>
 /// <param name="hints">The table hints to be used.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>The min value of the target field.</returns>
 public object Min(Expression <Func <TEntity, object> > field,
                   IEnumerable <QueryField> where = null,
                   string hints = null,
                   IDbTransaction transaction = null)
 {
     return(DbRepository.Min <TEntity>(field: field,
                                       where : where,
                                       hints: hints,
                                       transaction: transaction));
 }