Ejemplo n.º 1
0
        public M_Zone_Node GetModelFromReader(DbDataReader rdr)
        {
            M_Zone_Node model = new M_Zone_Node();

            model.ID         = Convert.ToInt32(rdr["ID"]);
            model.UserID     = Convert.ToInt32(rdr["UserID"]);
            model.NodeID     = Convert.ToInt32(rdr["NodeID"]);
            model.PageID     = ConvertToInt(rdr["PageID"]);
            model.LabelID    = ConverToStr(rdr["LabelID"]);
            model.style      = ConverToStr(rdr["style"]);
            model.Content    = ConverToStr(rdr["Content"]);
            model.Position   = ConverToStr(rdr["Position"]);
            model.Z_index    = ConverToStr(rdr["Z_index"]);
            model.Background = ConverToStr(rdr["Background"]);
            model.Border     = ConverToStr(rdr["Border"]);
            model.Font_size  = ConverToStr(rdr["Font_size"]);
            model.Display    = ConverToStr(rdr["Display"]);
            rdr.Close();
            return(model);
        }
Ejemplo n.º 2
0
        public override SqlParameter[] GetParameters()
        {
            M_Zone_Node model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value  = model.ID;
            sp[1].Value  = model.UserID;
            sp[2].Value  = model.NodeID;
            sp[3].Value  = model.PageID;
            sp[4].Value  = model.LabelID;
            sp[5].Value  = model.style;
            sp[6].Value  = model.Content;
            sp[7].Value  = model.Position;
            sp[8].Value  = model.Z_index;
            sp[9].Value  = model.Background;
            sp[10].Value = model.Border;
            sp[11].Value = model.Font_size;
            sp[12].Value = model.Display;
            return(sp);
        }