public static int GetLastCommonHouseID() { string sqlCommand = String.Format("select max(chID) from CommonHouse"); Sql sql = new Sql(); return sql.selectMaxCommonHouseID(sqlCommand); }