å¦æä½ è¿æ¯è·åä¸ä¸ªéåï¼åæ³ç¨ç¨readç模å¼è¯»åï¼é£ä¹æ好å
å®ä¹ä¸ä¸ªç¨æ¥ä¿åä½ æ¥è¯¢ç»æéçç±»
class dataModel
{
public string barcode ;
...
}
ç¶åå¨
å¨å¾ªç¯å¤é¢å®ä¹ä¸ä¸ªéåæ¥ä¿å
List<dataModel> listData=new List<dataModel>();
while(odr.Read())
{
dataModel model=new dataModel;
model.barcode=odr["barcode"].ToString();
....
listData.add(listData);
}
å
¶ä»çæ¥çå就好äºï¼è¿æ ·æ¹ä¾¿ä½ æ¥æ¾é误ã
å¦å¤ï¼æé误è¦è´´åºå
·ä½çé误信æ¯ã
追é®ç©ºæé