示例#1
0
        public M_User_Signin GetModelFromReader(DbDataReader rdr)
        {
            M_User_Signin model = new M_User_Signin();

            model.ID         = Convert.ToInt32(rdr["ID"]);
            model.UserID     = Convert.ToInt32(rdr["UserID"]);
            model.UserText   = ConverToStr(rdr["UserText"]);
            model.Status     = ConvertToInt(rdr["Status"]);
            model.CreateTime = ConvertToDate(rdr["CreateTime"]);
            model.Remind     = ConverToStr(rdr["Remind"]);
            rdr.Close();
            return(model);
        }
示例#2
0
        public override SqlParameter[] GetParameters()
        {
            M_User_Signin model = this;

            SqlParameter[] sp = GetSP();
            if (model.CreateTime <= DateTime.MinValue)
            {
                model.CreateTime = DateTime.Now;
            }
            sp[0].Value = model.ID;
            sp[1].Value = model.UserID;
            sp[2].Value = model.UserText;
            sp[3].Value = model.Status;
            sp[4].Value = model.CreateTime;
            sp[5].Value = model.Remind;
            return(sp);
        }