Пример #1
0
        public M_CollectionInfo GetModelFromReader(DbDataReader rdr)
        {
            M_CollectionInfo model = new M_CollectionInfo();

            model.C_IID   = Convert.ToInt32(rdr["C_IID"]);
            model.ModeID  = Convert.ToInt32(rdr["ModeID"]);
            model.NodeID  = Convert.ToInt32(rdr["NodeID"]);
            model.ItemID  = Convert.ToInt32(rdr["ItemID"]);
            model.CollID  = Convert.ToInt32(rdr["CollID"]);
            model.OldUrl  = ConverToStr(rdr["OldUrl"]);
            model.NewUrl  = ConverToStr(rdr["NewUrl"]);
            model.State   = ConvertToInt(rdr["State"]);
            model.AddTime = ConverToStr(rdr["AddTime"]);
            model.Remark  = ConverToStr(rdr["Remark"]);
            rdr.Close();
            return(model);
        }
Пример #2
0
        public override SqlParameter[] GetParameters()
        {
            M_CollectionInfo model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.C_IID;
            sp[1].Value = model.ModeID;
            sp[2].Value = model.NodeID;
            sp[3].Value = model.ItemID;
            sp[4].Value = model.CollID;
            sp[5].Value = model.OldUrl;
            sp[6].Value = model.NewUrl;
            sp[7].Value = model.State;
            sp[8].Value = model.AddTime;
            sp[9].Value = model.Remark;


            return(sp);
        }