예제 #1
0
 /// <summary>
 /// Check whether the rows are existing in the table in an asynchronous way.
 /// </summary>
 /// <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>A boolean value that indicates whether the rows are existing in the table..</returns>
 public Task <bool> ExistsAsync(Expression <Func <TEntity, bool> > where = null,
                                string hints = null,
                                IDbTransaction transaction = null)
 {
     return(DbRepository.ExistsAsync <TEntity>(where : where,
                                               hints: hints,
                                               transaction: transaction));
 }
예제 #2
0
 /// <summary>
 /// Check whether the rows are existing in the table in an asynchronous way.
 /// </summary>
 /// <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>A boolean value that indicates whether the rows are existing in the table..</returns>
 public Task <bool> ExistsAsync(QueryGroup where           = null,
                                string hints               = null,
                                IDbTransaction transaction = null)
 {
     return(DbRepository.ExistsAsync <TEntity>(where : where,
                                               hints: hints,
                                               transaction: transaction));
 }
예제 #3
0
 /// <summary>
 /// Check whether the rows are existing in the table in an asynchronous way.
 /// </summary>
 /// <param name="whereOrPrimaryKey">The dynamic expression or the primary key value to be used.</param>
 /// <param name="hints">The table hints to be used.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>A boolean value that indicates whether the rows are existing in the table..</returns>
 public Task <bool> ExistsAsync(object whereOrPrimaryKey   = null,
                                string hints               = null,
                                IDbTransaction transaction = null)
 {
     return(DbRepository.ExistsAsync <TEntity>(whereOrPrimaryKey: whereOrPrimaryKey,
                                               hints: hints,
                                               transaction: transaction));
 }
예제 #4
0
 /// <summary>
 /// Check whether the rows are existing in the table in an asynchronous way.
 /// </summary>
 /// <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>A boolean value that indicates whether the rows are existing in the table.</returns>
 public Task <bool> ExistsAsync(IEnumerable <QueryField> where,
                                string hints = null,
                                IDbTransaction transaction = null)
 {
     return(DbRepository.ExistsAsync <TEntity>(where : where,
                                               hints: hints,
                                               transaction: transaction));
 }
예제 #5
0
 /// <summary>
 /// Check whether the rows are existing in the table in an asynchronous way.
 /// </summary>
 /// <typeparam name="TWhat">The type of the expression or the key value.</typeparam>
 /// <param name="what">The dynamic expression or the key value to be used.</param>
 /// <param name="hints">The table hints to be used.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>A boolean value that indicates whether the rows are existing in the table.</returns>
 public Task <bool> ExistsAsync <TWhat>(TWhat what,
                                        string hints = null,
                                        IDbTransaction transaction = null)
 {
     return(DbRepository.ExistsAsync <TEntity, TWhat>(what: what,
                                                      hints: hints,
                                                      transaction: transaction));
 }
예제 #6
0
 /// <summary>
 /// Check whether the rows are existing in the table in an asynchronous way.
 /// </summary>
 /// <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>
 /// <param name="cancellationToken">The <see cref="CancellationToken"/> object to be used during the asynchronous operation.</param>
 /// <returns>A boolean value that indicates whether the rows are existing in the table.</returns>
 public Task <bool> ExistsAsync(QueryGroup where,
                                string hints = null,
                                IDbTransaction transaction          = null,
                                CancellationToken cancellationToken = default)
 {
     return(DbRepository.ExistsAsync <TEntity>(where : where,
                                               hints: hints,
                                               transaction: transaction,
                                               cancellationToken: cancellationToken));
 }
예제 #7
0
 /// <summary>
 /// Check whether the rows are existing in the table in an asynchronous way.
 /// </summary>
 /// <typeparam name="TWhat">The type of the expression or the key value.</typeparam>
 /// <param name="what">The dynamic expression or the key value to be used.</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>A boolean value that indicates whether the rows are existing in the table.</returns>
 public Task <bool> ExistsAsync <TWhat>(TWhat what,
                                        string hints = null,
                                        IDbTransaction transaction          = null,
                                        CancellationToken cancellationToken = default)
 {
     return(DbRepository.ExistsAsync <TEntity, TWhat>(what: what,
                                                      hints: hints,
                                                      transaction: transaction,
                                                      cancellationToken: cancellationToken));
 }