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