public virtual bool Eliminar() { string cmdTxt = "DELETE FROM " + this.strTabla + " WHERE " + this.idColumn + " = @ID "; SqlParameter[] parameters = new SqlParameter[1]; parameters[0] = new SqlParameter("@ID", this.getColumn(idColumn)); try { bool eliminado = DataAccessSql.ExecuteNonQuery(Constantes.sqlConnectionString, CommandType.Text, cmdTxt, parameters) > 0; return(eliminado); } catch (SqlException) { return(false); } catch (Exception) { return(false); } }