public List <AdminItem1Info> getAll() { List <AdminItem1Info> infos = new List <AdminItem1Info>(); IDataReader reader = db.GetData().CreateDataReader(); while (reader.Read()) { infos.Add(AdminItem1Info.Populate(reader)); } return(infos); }
public AdminItem1Info getAll(int id) { AdminItem1Info info = new AdminItem1Info(); IDataReader reader = db.GetDataByfiNo1(id).CreateDataReader(); while (reader.Read()) { info = AdminItem1Info.Populate(reader); } return(info); }
public int InsertForSort() { AdminItem1Info info = new AdminItem1Info(); IDataReader reader = db.InsertForSort().CreateDataReader(); if (reader.Read()) { info = AdminItem1Info.Populate(reader); return(info.ai1_sort + 1); } return(1); }