Here are the examples of the csharp api System.Collections.Generic.List.Add(zhuayuantongji) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
View Source File : IdCard_DAL.cs
License : Apache License 2.0
Project Creator : zjxi
License : Apache License 2.0
Project Creator : zjxi
public List<zhuayuantongji> p_zhuayuantongji()
{
SqlDataReader reader = DBHelper.SectionRoomSelect("p_zhuayuantongji");
List<zhuayuantongji> cards = new List<zhuayuantongji>();
while (reader.Read())
{
zhuayuantongji cd = new zhuayuantongji();
cd.Kid = (reader[0] + "");
cd.Sname = reader[1] + "";
cd.zmoney = int.Parse(reader[2] + "");
cd.ymoney = int.Parse(reader[3] + "");
cd.time = reader[4] + "";
cards.Add(cd);
}
DBHelper.con.Close();
DBHelper.con.Dispose();
DBHelper.cmd.Dispose();
return cards;
}