/// <summary> /// Truncates a table from the database. /// </summary> /// <param name="transaction">The transaction to be used.</param> /// <returns>The number of rows affected.</returns> public int Truncate(IDbTransaction transaction = null) { return(DbRepository.Truncate <TEntity>(transaction: transaction)); }
/// <summary> /// Truncates a table from the database. /// </summary> /// <returns>The number of rows affected.</returns> public int Truncate() { return(DbRepository.Truncate <TEntity>()); }