Пример #1
0
        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);
        }
Пример #2
0
        public AdminItem1Info getAll(int id)
        {
            AdminItem1Info info   = new AdminItem1Info();
            IDataReader    reader = db.GetDataByfiNo1(id).CreateDataReader();

            while (reader.Read())
            {
                info = AdminItem1Info.Populate(reader);
            }
            return(info);
        }
Пример #3
0
        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);
        }