Пример #1
0
        public override SqlParameter[] GetParameters()
        {
            M_Font_WriteWord model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.ID;
            sp[1].Value = model.WriteID;
            sp[2].Value = model.Unicode;
            sp[3].Value = model.Svg;
            sp[4].Value = model.FontSvg;
            sp[5].Value = model.CDate;
            sp[6].Value = model.ZStatus;
            sp[7].Value = model.vCanvasData;
            sp[8].Value = model.vCanvasList;
            sp[9].Value = model.vCount;
            return(sp);
        }
Пример #2
0
        public M_Font_WriteWord GetModelFromReader(DbDataReader rdr)
        {
            M_Font_WriteWord model = new M_Font_WriteWord();

            model.ID          = Convert.ToInt32(rdr["ID"]);
            model.WriteID     = ConvertToInt(rdr["WriteID"]);
            model.Unicode     = ConverToStr(rdr["Unicode"]);
            model.Svg         = ConverToStr(rdr["Svg"]);
            model.FontSvg     = ConverToStr(rdr["FontSvg"]);
            model.CDate       = ConvertToDate(rdr["CDate"]);
            model.ZStatus     = ConvertToInt(rdr["ZStatus"]);
            model.vCanvasData = ConverToStr(rdr["vCanvasData"]);
            model.vCanvasList = ConverToStr(rdr["vCanvasList"]);
            model.vCount      = ConvertToInt(rdr["vCount"]);
            rdr.Close();
            return(model);
        }