日期:2014-05-18 浏览次数:21485 次
string sql1 = "select namber,jgz,ftz,ldz,jtz,info from zikunew "; OleDbCommand comm1 = new OleDbCommand(sql1, conn); OleDbDataReader dr1 = comm1.ExecuteReader(); int s = dr1.FieldCount; List<Module> list =new List<Model>(); Module info =new Model(); while (dr1.Read()) { info.属性1=int.parse(dr1["属性1"].ToString()); info.属性2=int.parse(dr1["属性2"].ToString()); list.Add(info); }