Example #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, CcpreauthBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("custno", entity.custno);
     row.SetField("shipto", entity.shipto);
     row.SetField("whse", entity.whse);
     row.SetField("recordno", entity.recordno);
     row.SetField("ccpreauthRowID", entity.rowID.ToByteArray());
 }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCcpreauthBase(ref DataRow row, CcpreauthBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("custno", entity.custno);
     row.SetField("shipto", entity.shipto);
     row.SetField("whse", entity.whse);
     row.SetField("recordno", entity.recordno);
     row.SetField("mediacd", entity.mediacd);
     row.SetField("cardno", entity.cardno);
     row.SetField("transcd", entity.transcd);
     row.SetField("processcd", entity.processcd);
     row.SetField("commcd", entity.commcd);
     row.SetField("processno", entity.processno);
     row.SetField("exp", entity.exp);
     row.SetField("amount", entity.amount);
     row.SetField("authamt", entity.authamt);
     row.SetField("saleamt", entity.saleamt);
     row.SetField("preauthno", entity.preauthno);
     row.SetField("category", entity.category);
     row.SetField("response", entity.response);
     row.SetField("mediaauth", entity.mediaauth);
     row.SetField("createdt", entity.createdt);
     row.SetField("createtm", entity.createtm);
     row.SetField("submitdt", entity.submitdt);
     row.SetField("submittm", entity.submittm);
     row.SetField("respdt", entity.respdt);
     row.SetField("resptm", entity.resptm);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("operinit", entity.operinit);
     row.SetField("bankno", entity.bankno);
     row.SetField("statustype", entity.statustype);
     row.SetField("currproc", entity.currproc);
     row.SetField("avadd", entity.avadd);
     row.SetField("avzip", entity.avzip);
     row.SetField("destzip", entity.destzip);
     row.SetField("taxamt", entity.taxamt);
     row.SetField("cardid", entity.cardid);
     row.SetField("cmc", entity.cmc);
     row.SetField("cmm", entity.cmm);
     row.SetField("origproccd", entity.origproccd);
     row.SetField("origamt", entity.origamt);
     row.SetField("transproc", entity.transproc);
     row.SetField("user1", entity.user1);
     row.SetField("user2", entity.user2);
     row.SetField("user3", entity.user3);
     row.SetField("user4", entity.user4);
     row.SetField("user5", entity.user5);
     row.SetField("user6", entity.user6);
     row.SetField("user7", entity.user7);
     row.SetField("user8", entity.user8);
     row.SetField("user9", entity.user9);
     row.SetField("charpreauth", entity.charpreauth);
     row.SetField("charmediaauth", entity.charmediaauth);
     row.SetField("ccpreauthRowID", entity.rowID.ToByteArray());
 }