public override SqlParameter[] GetParameters() { M_WX_APPID model = this; EmptyDeal(); SqlParameter[] sp = GetSP(); sp[0].Value = model.ID; sp[1].Value = model.Alias; sp[2].Value = model.APPID; sp[3].Value = model.Secret; sp[4].Value = "";//token sp[5].Value = model.CDate; sp[6].Value = model.Status; sp[7].Value = model.IsDefault; sp[8].Value = model.TokenDate; sp[9].Value = model.WxNo; sp[10].Value = model.WelStr; sp[11].Value = model.OrginID; sp[12].Value = model.Pay_AccountID; sp[13].Value = model.Pay_Key; sp[14].Value = model.Pay_SSLPath; sp[15].Value = model.Pay_SSLPassword; sp[16].Value = model.QRCode; return(sp); }
public M_WX_APPID GetModelFromReader(DbDataReader rdr) { M_WX_APPID model = new M_WX_APPID(); model.ID = Convert.ToInt32(rdr["ID"]); model.Alias = ConverToStr(rdr["Alias"]); model.APPID = ConverToStr(rdr["APPID"]); model.Secret = ConverToStr(rdr["Secret"]); model.Token = ""; model.CDate = ConvertToDate(rdr["CDate"]); model.Status = ConvertToInt(rdr["Status"]); model.IsDefault = ConvertToInt(rdr["IsDefault"]); model.TokenDate = ConvertToDate(rdr["TokenDate"]); model.WxNo = ConverToStr(rdr["WxNo"]); model.WelStr = ConverToStr(rdr["WelStr"]); model.OrginID = ConverToStr(rdr["OrginID"]); model.Pay_AccountID = ConverToStr(rdr["Pay_AccountID"]); model.Pay_Key = ConverToStr(rdr["Pay_Key"]); model.Pay_SSLPath = ConverToStr(rdr["Pay_SSLPath"]); model.Pay_SSLPassword = ConverToStr(rdr["Pay_SSLPassword"]); model.QRCode = ConverToStr(rdr["QRCode"]); rdr.Close(); return(model); }