/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, PdssBase entity) { row.SetField("cono", entity.cono); row.SetField("pricetype", entity.pricetype); row.SetField("startdt", entity.startdt); row.SetField("whse", entity.whse); row.SetField("custptype", entity.custptype); row.SetField("pdssRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPdssBase(ref DataRow row, PdssBase entity) { row.SetField("cono", entity.cono); row.SetField("operinit", entity.operinit); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("pricetype", entity.pricetype); row.SetField("startdt", entity.startdt); row.SetField("enddt", entity.enddt); row.SetField("disctype", entity.disctype); row.SetField("whse", entity.whse); row.SetField("statustype", entity.statustype); row.SetField("refer", entity.refer); row.SetField("qtybrk1", entity.qtybrk1); row.SetField("qtybrk2", entity.qtybrk2); row.SetField("qtybrk3", entity.qtybrk3); row.SetField("qtybrk4", entity.qtybrk4); row.SetField("qtybrk5", entity.qtybrk5); row.SetField("qtybrk6", entity.qtybrk6); row.SetField("qtybrk7", entity.qtybrk7); row.SetField("qtybrk8", entity.qtybrk8); row.SetField("prcdisc1", entity.prcdisc1); row.SetField("prcdisc2", entity.prcdisc2); row.SetField("prcdisc3", entity.prcdisc3); row.SetField("prcdisc4", entity.prcdisc4); row.SetField("prcdisc5", entity.prcdisc5); row.SetField("prcdisc6", entity.prcdisc6); row.SetField("prcdisc7", entity.prcdisc7); row.SetField("prcdisc8", entity.prcdisc8); row.SetField("prcdisc9", entity.prcdisc9); row.SetField("custptype", entity.custptype); 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("transproc", entity.transproc); row.SetField("pdssRowID", entity.rowID.ToByteArray()); }