/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromGlsfmBase(ref DataRow row, GlsfmBase entity) { row.SetField("memoryloc", entity.memoryloc); row.SetField("percal", entity.percal); row.SetField("groupnm", entity.groupnm); row.SetField("operinit", entity.operinit); row.SetField("transdt", entity.transdt); row.SetField("transtm", entity.transtm); row.SetField("totlvl1", entity.totlvl1); row.SetField("totlvl2", entity.totlvl2); row.SetField("totlvl3", entity.totlvl3); row.SetField("totlvl4", entity.totlvl4); row.SetField("totlvl5", entity.totlvl5); row.SetField("totlvl6", entity.totlvl6); row.SetField("totlvl7", entity.totlvl7); row.SetField("totlvl8", entity.totlvl8); row.SetField("totlvl9", entity.totlvl9); row.SetField("totlvl10", entity.totlvl10); row.SetField("totlvl11", entity.totlvl11); row.SetField("totlvl12", entity.totlvl12); row.SetField("totlvl13", entity.totlvl13); row.SetField("totlvl14", entity.totlvl14); row.SetField("totlvl15", entity.totlvl15); 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("glsfmRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, GlsfmBase entity) { row.SetField("memoryloc", entity.memoryloc); row.SetField("percal", entity.percal); row.SetField("glsfmRowID", entity.rowID.ToByteArray()); }