public M_User_BindPro GetModelFromReader(DbDataReader rdr) { M_User_BindPro model = new M_User_BindPro(); model.ID = ConvertToInt(rdr["ID"]); model.UserID = ConvertToInt(rdr["UserID"]); model.UserName = ConverToStr(rdr["UserName"]); model.ProIDS = ConverToStr(rdr["ProIDS"]); model.Remind = ConverToStr(rdr["Remind"]); rdr.Close(); return(model); }
public override SqlParameter[] GetParameters() { M_User_BindPro model = this; SqlParameter[] sp = GetSP(); sp[0].Value = model.ID; sp[1].Value = model.UserID; sp[2].Value = model.UserName; sp[3].Value = model.ProIDS; sp[4].Value = model.Remind; return(sp); }