public static int GetLastInnerRoadID() { string sqlCommand = String.Format("select max(irID) from InnerRoad"); Sql sql = new Sql(); return sql.selectMaxInnerRoadID(sqlCommand); }