/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, PoeradBase entity) { row.SetField("cono", entity.cono); row.SetField("reportno", entity.reportno); row.SetField("lineno", entity.lineno); row.SetField("seqno", entity.seqno); row.SetField("whse", entity.whse); row.SetField("poeradRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPoeradBase(ref DataRow row, PoeradBase entity) { row.SetField("cono", entity.cono); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("operinit", entity.operinit); row.SetField("reportno", entity.reportno); row.SetField("lineno", entity.lineno); row.SetField("seqno", entity.seqno); row.SetField("whse", entity.whse); row.SetField("stkqtyord", entity.stkqtyord); 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("prodline", entity.prodline); row.SetField("qtyord", entity.qtyord); row.SetField("frcstamt1", entity.frcstamt1); row.SetField("frcstamt2", entity.frcstamt2); row.SetField("frcstamt3", entity.frcstamt3); row.SetField("frcstamt4", entity.frcstamt4); row.SetField("frcstamt5", entity.frcstamt5); row.SetField("frcstamt6", entity.frcstamt6); row.SetField("frcstamt7", entity.frcstamt7); row.SetField("frcstamt8", entity.frcstamt8); row.SetField("frcstamt9", entity.frcstamt9); row.SetField("frcstamt10", entity.frcstamt10); row.SetField("frcstamt11", entity.frcstamt11); row.SetField("frcstamt12", entity.frcstamt12); row.SetField("startmth", entity.startmth); row.SetField("transproc", entity.transproc); row.SetField("poeradRowID", entity.rowID.ToByteArray()); }