/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSwoeelBase(ref DataRow row, SwoeelBase entity) { row.SetField("cono", entity.cono); row.SetField("operinit", entity.operinit); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); 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("linecnt", entity.linecnt); row.SetField("jobtype", entity.jobtype); row.SetField("lineno", entity.lineno); row.SetField("vendclaimno", entity.vendclaimno); row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("solineno", entity.solineno); row.SetField("vendno", entity.vendno); row.SetField("repairordno", entity.repairordno); row.SetField("repairordsuf", entity.repairordsuf); row.SetField("stagecd", entity.stagecd); row.SetField("intclaimno", entity.intclaimno); row.SetField("warrantycd", entity.warrantycd); row.SetField("invclaimcd", entity.invclaimcd); row.SetField("swlineno", entity.swlineno); row.SetField("srtqty", entity.srtqty); row.SetField("srtoverfl", entity.srtoverfl); row.SetField("damagecd", entity.damagecd); row.SetField("transproc", entity.transproc); row.SetField("swoeelRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, SwoeelBase entity) { row.SetField("swoeelRowID", entity.rowID.ToByteArray()); }