public override bool update() { if (!isValid()) return false; string sqlCommand = String.Format(@"update NetSize set nsWidth={0},nsHeight={1},prID={2} where nsID={3}", nsWidth, nsHeight, prID, nsID); Sql sql = new Sql(); return sql.updateNetSize(sqlCommand); }