Beispiel #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, ApsdBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("srcrowpointer", entity.srcrowpointer);
     row.SetField("shipviaty", entity.shipviaty);
     row.SetField("apsdRowID", entity.rowID.ToByteArray());
 }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromApsdBase(ref DataRow row, ApsdBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("srcrowpointer", entity.srcrowpointer);
     row.SetField("shipviaty", entity.shipviaty);
     row.SetField("minleaddays", entity.minleaddays);
     row.SetField("deliverycd", entity.deliverycd);
     row.SetField("shipsrvcd", entity.shipsrvcd);
     row.SetField("addonno1", entity.addonno1);
     row.SetField("addonno2", entity.addonno2);
     row.SetField("addonamt1", entity.addonamt1);
     row.SetField("addonamt2", entity.addonamt2);
     row.SetField("addontype1", entity.addontype1);
     row.SetField("addontype2", entity.addontype2);
     row.SetField("capaddonno1", entity.capaddonno1);
     row.SetField("capaddonno2", entity.capaddonno2);
     row.SetField("capaddonno3", entity.capaddonno3);
     row.SetField("capaddonno4", entity.capaddonno4);
     row.SetField("capaddonamt1", entity.capaddonamt1);
     row.SetField("capaddonamt2", entity.capaddonamt2);
     row.SetField("capaddonamt3", entity.capaddonamt3);
     row.SetField("capaddonamt4", entity.capaddonamt4);
     row.SetField("capaddontype1", entity.capaddontype1);
     row.SetField("capaddontype2", entity.capaddontype2);
     row.SetField("capaddontype3", entity.capaddontype3);
     row.SetField("capaddontype4", entity.capaddontype4);
     row.SetField("diraddonno1", entity.diraddonno1);
     row.SetField("diraddonno2", entity.diraddonno2);
     row.SetField("diraddonamt1", entity.diraddonamt1);
     row.SetField("diraddonamt2", entity.diraddonamt2);
     row.SetField("diraddontype1", entity.diraddontype1);
     row.SetField("diraddontype2", entity.diraddontype2);
     row.SetField("dircapaddonno1", entity.dircapaddonno1);
     row.SetField("dircapaddonno2", entity.dircapaddonno2);
     row.SetField("dircapaddonno3", entity.dircapaddonno3);
     row.SetField("dircapaddonno4", entity.dircapaddonno4);
     row.SetField("dircapaddonamt1", entity.dircapaddonamt1);
     row.SetField("dircapaddonamt2", entity.dircapaddonamt2);
     row.SetField("dircapaddonamt3", entity.dircapaddonamt3);
     row.SetField("dircapaddonamt4", entity.dircapaddonamt4);
     row.SetField("dircapaddontype1", entity.dircapaddontype1);
     row.SetField("dircapaddontype2", entity.dircapaddontype2);
     row.SetField("dircapaddontype3", entity.dircapaddontype3);
     row.SetField("dircapaddontype4", entity.dircapaddontype4);
     row.SetField("wodiscpct", entity.wodiscpct);
     row.SetField("wodisctype", entity.wodisctype);
     row.SetField("usewodisc", entity.usewodisc);
     row.SetField("useaddons", entity.useaddons);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("transproc", entity.transproc);
     row.SetField("operinit", entity.operinit);
     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("dirpoaddonfl", entity.dirpoaddonfl);
     row.SetField("apsdRowID", entity.rowID.ToByteArray());
 }