public M_Order_PayLog GetModelFromReader(DbDataReader rdr) { M_Order_PayLog model = new M_Order_PayLog(); model.ID = Convert.ToInt32(rdr["ID"]); model.OrderID = ConvertToInt(rdr["OrderID"]); model.PayMethod = ConvertToInt(rdr["PayMethod"]); model.PayMoney = ConverToDouble(rdr["PayMoney"]); model.PayPlatID = ConvertToInt(rdr["PayPlatID"]); model.UserID = Convert.ToInt32(rdr["UserID"]); model.AddTime = ConvertToDate(rdr["AddTime"]); model.Remind = ConverToStr(rdr["Remind"]); rdr.Close(); return(model); }
public override SqlParameter[] GetParameters() { M_Order_PayLog model = this; SqlParameter[] sp = GetSP(); sp[0].Value = model.ID; sp[1].Value = model.OrderID; sp[2].Value = model.PayMethod; sp[3].Value = model.PayMoney; sp[4].Value = model.PayPlatID; sp[5].Value = model.UserID; sp[6].Value = model.AddTime; sp[7].Value = model.Remind; return(sp); }