public override bool select() { if (!isValid(new List<string>() { "prID", "mrName", "mrPath" })) return false; string sqlCommand = String.Format(@"select * from MainRoad where mrID={0}", mrID); Sql sql = new Sql(); SqlDataReader reader = sql.selectMainRoad(sqlCommand); initBySqlDataReader(reader); sql.closeConnection(); return true; }