Esempio n. 1
0
        public BannerCustomerInfo GetDataById(int bcs_id)
        {
            BannerCustomerInfo info   = new BannerCustomerInfo();
            IDataReader        reader = db.GetDataById(bcs_id).CreateDataReader();

            if (reader.Read())
            {
                info = BannerCustomerInfo.Populate(reader);
            }
            return(info);
        }
Esempio n. 2
0
        public List <BannerCustomerInfo> GetAll()
        {
            List <BannerCustomerInfo> infos = new List <BannerCustomerInfo>();
            IDataReader reader = db.GetData().CreateDataReader();

            while (reader.Read())
            {
                infos.Add(BannerCustomerInfo.Populate(reader));
            }
            return(infos);
        }