/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, IcetfBase entity) { row.SetField("cono", entity.cono); row.SetField("prod", entity.prod); row.SetField("whse", entity.whse); row.SetField("seqno", entity.seqno); row.SetField("issuedt", entity.issuedt); row.SetField("icetfRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromIcetfBase(ref DataRow row, IcetfBase entity) { row.SetField("cono", entity.cono); row.SetField("prod", entity.prod); row.SetField("whse", entity.whse); row.SetField("seqno", entity.seqno); row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("lineno", entity.lineno); row.SetField("ordertype", entity.ordertype); row.SetField("qtyship", entity.qtyship); row.SetField("receiptdt", entity.receiptdt); row.SetField("issuedt", entity.issuedt); row.SetField("taxrateau", entity.taxrateau); row.SetField("taxratepdau", entity.taxratepdau); row.SetField("taxablety", entity.taxablety); row.SetField("taxissuedau", entity.taxissuedau); row.SetField("icspecrecno", entity.icspecrecno); row.SetField("creditvalau", entity.creditvalau); row.SetField("salescostau", entity.salescostau); row.SetField("taxpaid", entity.taxpaid); row.SetField("returncostau", entity.returncostau); row.SetField("kitseqno", entity.kitseqno); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("operinit", entity.operinit); row.SetField("user1", entity.user1); row.SetField("stagecdau", entity.stagecdau); row.SetField("user2", entity.user2); row.SetField("pono", entity.pono); row.SetField("user3", entity.user3); row.SetField("posuf", entity.posuf); row.SetField("user4", entity.user4); row.SetField("polineno", entity.polineno); row.SetField("user5", entity.user5); row.SetField("src", entity.src); row.SetField("user6", entity.user6); row.SetField("qtycost", entity.qtycost); row.SetField("user7", entity.user7); row.SetField("oeelcost", entity.oeelcost); row.SetField("user8", entity.user8); row.SetField("bpfl", entity.bpfl); row.SetField("user9", entity.user9); row.SetField("transproc", entity.transproc); row.SetField("icetfRowID", entity.rowID.ToByteArray()); }