/// <summary> /// Delete the rows from the table. /// </summary> /// <param name="keys">The list of the keys 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 DeleteAll(IEnumerable <object> keys, string hints = null, IDbTransaction transaction = null) { return(DbRepository.DeleteAll <TEntity>(keys: keys, hints: hints, transaction: transaction)); }
/// <summary> /// Delete the rows from the table. /// </summary> /// <param name="entities">The list of data entity objects 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 DeleteAll(IEnumerable <TEntity> entities, string hints = null, IDbTransaction transaction = null) { return(DbRepository.DeleteAll <TEntity>(entities: entities, hints: hints, transaction: transaction)); }
/// <summary> /// Delete the rows from the table. /// </summary> /// <typeparam name="TKey">The type of the key column.</typeparam> /// <param name="tableName">The name of the target table.</param> /// <param name="keys">The list of the primary keys 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 DeleteAll <TKey>(string tableName, IEnumerable <TKey> keys, string hints = null, IDbTransaction transaction = null) { return(DbRepository.DeleteAll <TEntity, TKey>(tableName: tableName, keys: keys, hints: hints, transaction: transaction)); }
/// <summary> /// Delete all the rows from the table. /// </summary> /// <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 DeleteAll(string hints = null, IDbTransaction transaction = null) { return(DbRepository.DeleteAll <TEntity>(hints: hints, transaction: transaction)); }
/// <summary> /// Deletes all the data from the database. /// </summary> /// <param name="transaction">The transaction to be used.</param> /// <returns>The number of rows affected by the execution.</returns> public int DeleteAll(IDbTransaction transaction = null) { return(DbRepository.DeleteAll <TEntity>(transaction: transaction)); }