Example #1
0
 public override bool select()
 {
     if (!isValid(new List<string>() { "pName", "pPath", "pBaseMapIndex" }))
         return false;
     string sqlCommand = String.Format("select * from Project where pID={0}", pID);
     Sql sql = new Sql();
     SqlDataReader reader = sql.selectProjectAndMap(sqlCommand);
     reader.Read();
     id = Int32.Parse(reader[0].ToString());
     name = reader[1].ToString();
     path = reader[2].ToString();
     baseMapIndex = Int32.Parse(reader[3].ToString());
     sql.closeConnection();
     return true;
 }