Example #1
0
        public override SqlParameter[] GetParameters()
        {
            M_ARoleAuth model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value  = model.ID;
            sp[1].Value  = model.Rid;
            sp[2].Value  = model.model;
            sp[3].Value  = model.content;
            sp[4].Value  = model.shop;
            sp[5].Value  = model.page;
            sp[6].Value  = model.exam;
            sp[7].Value  = model.user;
            sp[8].Value  = model.system;
            sp[9].Value  = model.office;
            sp[10].Value = model.portable;
            sp[11].Value = model.sites;
            sp[12].Value = model.other;
            sp[13].Value = model.extend;
            sp[14].Value = model.AdminID;
            return(sp);
        }
Example #2
0
        public M_ARoleAuth GetModelFromReader(DbDataReader rdr)
        {
            M_ARoleAuth model = new M_ARoleAuth();

            model.ID       = ConvertToInt(rdr["ID"]);
            model.Rid      = ConvertToInt(rdr["Rid"]);
            model.model    = ConverToStr(rdr["model"]);
            model.content  = ConverToStr(rdr["content"]);
            model.shop     = ConverToStr(rdr["shop"]);
            model.page     = ConverToStr(rdr["page"]);
            model.exam     = ConverToStr(rdr["exam"]);
            model.user     = ConverToStr(rdr["user"]);
            model.system   = ConverToStr(rdr["system"]);
            model.office   = ConverToStr(rdr["office"]);
            model.portable = ConverToStr(rdr["portable"]);
            model.sites    = ConverToStr(rdr["sites"]);
            model.other    = ConverToStr(rdr["other"]);
            model.extend   = ConverToStr(rdr["extend"]);
            model.AdminID  = ConvertToInt(rdr["AdminID"]);
            rdr.Close();
            return(model);
        }