コード例 #1
0
        public M_Shop_RegionPrice GetModelFromReader(DbDataReader rdr)
        {
            M_Shop_RegionPrice model = new M_Shop_RegionPrice();

            model.ID     = ConvertToInt(rdr["ID"]);
            model.ProID  = ConvertToInt(rdr["ProID"]);
            model.Guid   = ConverToStr(rdr["Guid"]);
            model.Info   = ConverToStr(rdr["Info"]);
            model.Remind = ConverToStr(rdr["Remind"]);
            rdr.Close();
            return(model);
        }
コード例 #2
0
        public override SqlParameter[] GetParameters()
        {
            M_Shop_RegionPrice model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.ID;
            sp[1].Value = model.ProID;
            sp[2].Value = model.Guid;
            sp[3].Value = model.Info;
            sp[4].Value = model.Remind;
            return(sp);
        }