protected async Task <bool> DeleteAllAsync <TEntity>(IDbTransaction transaction = null, int?commandTimeout = null) where TEntity : class { using (IDbConnection connection = new Npgsql.NpgsqlConnection(this.connectionString)) { try { connection.Open(); return(await connection.DeleteAllAsync <TEntity>(transaction, commandTimeout)); } catch (Exception exc) { Console.WriteLine(exc.Message); throw exc; } } }