示例#1
0
        public M_Store_Style GetModelFromReader(DbDataReader rdr)
        {
            M_Store_Style model = new M_Store_Style();

            model.ID               = ConvertToInt(rdr["ID"]);
            model.StyleName        = ConverToStr(rdr["StyleName"]);
            model.Template_Index   = ConverToStr(rdr["Template_Index"]);
            model.Template_Content = ConverToStr(rdr["Template_Content"]);
            model.Template_List    = ConverToStr(rdr["Template_List"]);
            model.ZStatus          = ConvertToInt(rdr["ZStatus"]);
            model.CDate            = ConvertToDate(rdr["CDate"]);
            model.Remind           = ConverToStr(rdr["Remind"]);
            model.Thumbnail        = ConverToStr(rdr["Thumbnail"]);
            rdr.Close();
            return(model);
        }
示例#2
0
        public override SqlParameter[] GetParameters()
        {
            M_Store_Style model = this;

            if (model.CDate <= DateTime.MinValue)
            {
                model.CDate = DateTime.Now;
            }
            SqlParameter[] sp = GetSP();
            sp[0].Value = model.ID;
            sp[1].Value = model.StyleName;
            sp[2].Value = model.Template_Index;
            sp[3].Value = model.Template_Content;
            sp[4].Value = model.Template_List;
            sp[5].Value = model.ZStatus;
            sp[6].Value = model.CDate;
            sp[7].Value = model.Remind;
            sp[8].Value = model.Thumbnail;
            return(sp);
        }