Exemple #1
0
 public void updatedatamodel(CacheDataReader reader)
 {
     try
     {
         while (reader.Read())
         {
             Age       = (long)reader.GetInt32(reader.GetOrdinal("AAGE"));
             City      = reader[reader.GetOrdinal("ACITY")].ToString();
             HomePhone = reader[reader.GetOrdinal("APHHOME")].ToString();
             Name      = reader[reader.GetOrdinal("ANAME")].ToString();
             Street    = reader[reader.GetOrdinal("ASTREET")].ToString();
             WorkPhone = reader[reader.GetOrdinal("APHWORK")].ToString();
             ZipCode   = reader[reader.GetOrdinal("AZIP")].ToString();
             dob       = reader.GetDate(reader.GetOrdinal("ABTHDAY")).ToShortDateString();
             id        = reader[reader.GetOrdinal("AID")].ToString();
             newflag   = false;
         }
     }
     catch (Exception err)
     {
         MessageBox.Show("CacheDataReaderエラー " + err.Message);
     }
 }