Example #1
0
 public override bool select()
 {
     if (!isValid(new List<string>() { "prID", "vName", "vBoundary", "vInUse" }))
         return false;
     string sqlCommand = String.Format("select * from Village where vID={0}", vID);
     Sql sql = new Sql();
     SqlDataReader reader = sql.selectVillage(sqlCommand);
     initBySqlDataReader(reader);
     sql.closeConnection();
     return true;
 }