public override bool update() { if (!isValid()) return false; string sqlCommand = String.Format(@"update Config set prID={0},cdID={1},cfValue={2} where cfID={3}" , prID, cdID, cfValue, cfID); Sql sql = new Sql(); return sql.updateConfig(sqlCommand); }