/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, OerbtBase entity) { row.SetField("cono", entity.cono); row.SetField("type", entity.type); row.SetField("filedt", entity.filedt); row.SetField("filetm", entity.filetm); row.SetField("custno", entity.custno); row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("oerbtRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOerbtBase(ref DataRow row, OerbtBase entity) { row.SetField("cono", entity.cono); row.SetField("type", entity.type); row.SetField("filedt", entity.filedt); row.SetField("filetm", entity.filetm); row.SetField("custno", entity.custno); row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("docdt", entity.docdt); row.SetField("totamt", entity.totamt); row.SetField("method", entity.method); row.SetField("match", entity.match); row.SetField("copies", entity.copies); row.SetField("invcnt", entity.invcnt); row.SetField("optioncnt1", entity.optioncnt1); row.SetField("optioncnt2", entity.optioncnt2); row.SetField("optioncnt3", entity.optioncnt3); row.SetField("optioncnt4", entity.optioncnt4); row.SetField("optioncnt5", entity.optioncnt5); row.SetField("optioncnt6", entity.optioncnt6); row.SetField("optioncnt7", entity.optioncnt7); row.SetField("optioncnt8", entity.optioncnt8); row.SetField("optioncnt9", entity.optioncnt9); row.SetField("optioncnt10", entity.optioncnt10); row.SetField("optioncnt11", entity.optioncnt11); row.SetField("optioncnt12", entity.optioncnt12); row.SetField("optioncnt13", entity.optioncnt13); row.SetField("optioncnt14", entity.optioncnt14); row.SetField("optioncnt15", entity.optioncnt15); row.SetField("optioncnt16", entity.optioncnt16); row.SetField("optioncnt17", entity.optioncnt17); row.SetField("optioncnt18", entity.optioncnt18); row.SetField("optioncnt19", entity.optioncnt19); row.SetField("optioncnt20", entity.optioncnt20); row.SetField("optvalue1", entity.optvalue1); row.SetField("optvalue2", entity.optvalue2); row.SetField("optvalue3", entity.optvalue3); row.SetField("optvalue4", entity.optvalue4); row.SetField("optvalue5", entity.optvalue5); row.SetField("optvalue6", entity.optvalue6); row.SetField("optvalue7", entity.optvalue7); row.SetField("optvalue8", entity.optvalue8); row.SetField("optvalue9", entity.optvalue9); row.SetField("optvalue10", entity.optvalue10); row.SetField("optvalue11", entity.optvalue11); row.SetField("optvalue12", entity.optvalue12); row.SetField("optvalue13", entity.optvalue13); row.SetField("optvalue14", entity.optvalue14); row.SetField("optvalue15", entity.optvalue15); row.SetField("optvalue16", entity.optvalue16); row.SetField("optvalue17", entity.optvalue17); row.SetField("optvalue18", entity.optvalue18); row.SetField("optvalue19", entity.optvalue19); row.SetField("optvalue20", entity.optvalue20); row.SetField("openinit", entity.openinit); row.SetField("operinit", entity.operinit); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); 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("oerbtRowID", entity.rowID.ToByteArray()); }