示例#1
0
 /// <summary>
 /// Check whether the rows are existing in the table.
 /// </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 bool Exists(QueryGroup where           = null,
                    string hints               = null,
                    IDbTransaction transaction = null)
 {
     return(DbRepository.Exists <TEntity>(where : where,
                                          hints: hints,
                                          transaction: transaction));
 }
示例#2
0
 /// <summary>
 /// Check whether the rows are existing in the table.
 /// </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 bool Exists(IEnumerable <QueryField> where = null,
                    string hints = null,
                    IDbTransaction transaction = null)
 {
     return(DbRepository.Exists <TEntity>(where : where,
                                          hints: hints,
                                          transaction: transaction));
 }
示例#3
0
 /// <summary>
 /// Check whether the rows are existing in the table.
 /// </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 bool Exists(Expression <Func <TEntity, bool> > where = null,
                    string hints = null,
                    IDbTransaction transaction = null)
 {
     return(DbRepository.Exists <TEntity>(where : where,
                                          hints: hints,
                                          transaction: transaction));
 }
示例#4
0
 /// <summary>
 /// Check whether the rows are existing in the table.
 /// </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 bool Exists(object whereOrPrimaryKey   = null,
                    string hints               = null,
                    IDbTransaction transaction = null)
 {
     return(DbRepository.Exists <TEntity>(whereOrPrimaryKey: whereOrPrimaryKey,
                                          hints: hints,
                                          transaction: transaction));
 }
示例#5
0
 /// <summary>
 /// Check whether the rows are existing in the table.
 /// </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 bool Exists(QueryField where,
                    string hints = null,
                    IDbTransaction transaction = null)
 {
     return(DbRepository.Exists <TEntity>(where : where,
                                          transaction: transaction,
                                          hints: hints));
 }
示例#6
0
 /// <summary>
 /// Check whether the rows are existing in the table.
 /// </summary>
 /// <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 bool Exists(object what  = null,
                    string hints = null,
                    IDbTransaction transaction = null)
 {
     return(DbRepository.Exists <TEntity>(what: what,
                                          hints: hints,
                                          transaction: transaction));
 }