예제 #1
0
 /// <summary>
 /// Delete the rows from 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>The number of rows that has been deleted from the table.</returns>
 public int Delete(Expression <Func <TEntity, bool> > where,
                   string hints = null,
                   IDbTransaction transaction = null)
 {
     return(DbRepository.Delete <TEntity>(where : where,
                                          hints: hints,
                                          transaction: transaction));
 }
예제 #2
0
 /// <summary>
 /// Delete the rows from 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>The number of rows that has been deleted from the table.</returns>
 public int Delete(QueryField where,
                   string hints = null,
                   IDbTransaction transaction = null)
 {
     return(DbRepository.Delete <TEntity>(where : where,
                                          hints: hints,
                                          transaction: transaction));
 }
예제 #3
0
 /// <summary>
 /// Delete the rows from the table.
 /// </summary>
 /// <typeparam name="TExpressionOrKey">The type of the expression or the key.</typeparam>
 /// <param name="whereOrPrimaryKey">The dynamic expression or the primary/identity 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>The number of rows that has been deleted from the table.</returns>
 public int Delete <TExpressionOrKey>(TExpressionOrKey whereOrPrimaryKey,
                                      string hints = null,
                                      IDbTransaction transaction = null)
 {
     return(DbRepository.Delete <TEntity, TExpressionOrKey>(whereOrPrimaryKey: whereOrPrimaryKey,
                                                            hints: hints,
                                                            transaction: transaction));
 }
예제 #4
0
 /// <summary>
 /// Delete the rows from the table.
 /// </summary>
 /// <param name="whereOrPrimaryKey">The dynamic expression or the primary/identity 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>The number of rows that has been deleted from the table.</returns>
 public int Delete(object whereOrPrimaryKey,
                   string hints = null,
                   IDbTransaction transaction = null)
 {
     return(DbRepository.Delete <TEntity>(whereOrPrimaryKey: whereOrPrimaryKey,
                                          hints: hints,
                                          transaction: transaction));
 }
예제 #5
0
 /// <summary>
 /// Deletes an existing row from the table.
 /// </summary>
 /// <param name="entity">The data entity object to be deleted.</param>
 /// <param name="hints">The table hints to be used.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>The number of rows that has been deleted from the table.</returns>
 public int Delete(TEntity entity,
                   string hints = null,
                   IDbTransaction transaction = null)
 {
     return(DbRepository.Delete <TEntity>(entity: entity,
                                          hints: hints,
                                          transaction: transaction));
 }
예제 #6
0
 /// <summary>
 /// Delete the rows from 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>The number of rows that has been deleted from the table.</returns>
 public int Delete(object what,
                   string hints = null,
                   IDbTransaction transaction = null)
 {
     return(DbRepository.Delete <TEntity>(what: what,
                                          hints: hints,
                                          transaction: transaction));
 }
예제 #7
0
파일: Delete.cs 프로젝트: softempire/RepoDb
 /// <summary>
 /// Deletes an existing data from the database.
 /// </summary>
 /// <param name="where">The query expression to be used.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>The number of rows affected by the execution.</returns>
 public int Delete(QueryGroup where,
                   IDbTransaction transaction = null)
 {
     return(DbRepository.Delete <TEntity>(where : where,
                                          transaction: transaction));
 }
예제 #8
0
파일: Delete.cs 프로젝트: softempire/RepoDb
 /// <summary>
 /// Deletes an existing data from the database.
 /// </summary>
 /// <param name="where">The query expression to be used.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>The number of rows affected by the execution.</returns>
 public int Delete(IEnumerable <QueryField> where,
                   IDbTransaction transaction = null)
 {
     return(DbRepository.Delete <TEntity>(where : where,
                                          transaction: transaction));
 }
예제 #9
0
파일: Delete.cs 프로젝트: softempire/RepoDb
 /// <summary>
 /// Deletes an existing data from the database.
 /// </summary>
 /// <param name="entity">The data entity object to be deleted.</param>
 /// <param name="transaction">The transaction to be used.</param>
 /// <returns>The number of rows affected by the execution.</returns>
 public int Delete(TEntity entity,
                   IDbTransaction transaction = null)
 {
     return(DbRepository.Delete <TEntity>(entity: entity,
                                          transaction: transaction));
 }