/// <summary> /// Delete ALL /// 删除全部。 /// </summary> /// <typeparam name="TEntity">类型参数</typeparam> /// <param name="connection">DbConnection</param> /// <param name="transaction">事务</param> /// <returns>bool</returns> public static bool DeleteAll <TEntity>(this IDbConnection connection, IDbTransaction transaction = null) { try { return(DommelMapper.DeleteAll <TEntity>(connection, transaction)); } catch (Exception ex) { throw new Exception(ex.Message); } }