/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, PoelbBase entity) { row.SetField("pono", entity.pono); row.SetField("posuf", entity.posuf); row.SetField("lineno", entity.lineno); row.SetField("cono", entity.cono); row.SetField("shipmentid", entity.shipmentid); row.SetField("poelbRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPoelbBase(ref DataRow row, PoelbBase entity) { row.SetField("pono", entity.pono); row.SetField("posuf", entity.posuf); row.SetField("lineno", entity.lineno); row.SetField("cono", entity.cono); row.SetField("transdt", entity.transdt); row.SetField("operinit", entity.operinit); row.SetField("transtm", entity.transtm); 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("cancelfl", entity.cancelfl); row.SetField("user1", entity.user1); row.SetField("user2", entity.user2); row.SetField("shipmentid", entity.shipmentid); row.SetField("qtyrcv", entity.qtyrcv); row.SetField("stkqtyrcv", entity.stkqtyrcv); row.SetField("shipprod", entity.shipprod); row.SetField("reqprod", entity.reqprod); row.SetField("unit", entity.unit); row.SetField("unitconv", entity.unitconv); row.SetField("qtyunavail", entity.qtyunavail); row.SetField("reasunavty", entity.reasunavty); row.SetField("transproc", entity.transproc); row.SetField("user10", entity.user10); row.SetField("user11", entity.user11); row.SetField("user12", entity.user12); row.SetField("user13", entity.user13); row.SetField("user14", entity.user14); row.SetField("user15", entity.user15); row.SetField("user16", entity.user16); row.SetField("user17", entity.user17); row.SetField("user18", entity.user18); row.SetField("user19", entity.user19); row.SetField("user20", entity.user20); row.SetField("user21", entity.user21); row.SetField("user22", entity.user22); row.SetField("user23", entity.user23); row.SetField("user24", entity.user24); row.SetField("edishipmentid", entity.edishipmentid); row.SetField("edipackageid", entity.edipackageid); row.SetField("poelbRowID", entity.rowID.ToByteArray()); }