예제 #1
0
        public M_User_Token GetModelFromReader(DbDataReader rdr)
        {
            M_User_Token model = new M_User_Token();

            model.id        = Convert.ToInt32(rdr["id"]);
            model.uid       = Convert.ToInt32(rdr["uid"]);
            model.SinaToken = ConverToStr(rdr["SinaToken"]);
            model.QQOpenID  = ConverToStr(rdr["QQOpenID"]);
            model.QQToken   = ConverToStr(rdr["QQToken"]);
            model.QQUName   = ConverToStr(rdr["QQUName"]);
            model.WXOpenID  = ConverToStr(rdr["WXOpenID"]);
            model.WxInfo    = ConverToStr(rdr["WxInfo"]);
            rdr.Close();
            return(model);
        }
예제 #2
0
        public override SqlParameter[] GetParameters()
        {
            M_User_Token model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.id;
            sp[1].Value = model.uid;
            sp[2].Value = model.SinaToken;
            sp[3].Value = model.QQOpenID;
            sp[4].Value = model.QQToken;
            sp[5].Value = model.QQUName;
            sp[6].Value = model.WXOpenID;
            sp[7].Value = model.WxInfo;
            return(sp);
        }