/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromActivitiesBase(ref DataRow row, ActivitiesBase entity) { row.SetField("cono", entity.cono); row.SetField("activityid", entity.activityid); row.SetField("oper2", entity.oper2); row.SetField("activitycd", entity.activitycd); row.SetField("actstartdt", entity.actstartdt); row.SetField("actstarttm", entity.actstarttm); row.SetField("actstopdt", entity.actstopdt); row.SetField("actstoptm", entity.actstoptm); row.SetField("durationtm", entity.durationtm); row.SetField("comment", entity.comment); row.SetField("name", entity.name); row.SetField("notesfl", entity.notesfl); row.SetField("phoneno", entity.phoneno); row.SetField("resultcd", entity.resultcd); row.SetField("schstartdt", entity.schstartdt); row.SetField("schstarttm", entity.schstarttm); row.SetField("statuscd", entity.statuscd); row.SetField("priority", entity.priority); row.SetField("parentactvid", entity.parentactvid); row.SetField("contactid", entity.contactid); row.SetField("subjecttype", entity.subjecttype); row.SetField("subjectprimarykey", entity.subjectprimarykey); row.SetField("subjectsecondkey", entity.subjectsecondkey); row.SetField("doctype", entity.doctype); row.SetField("docorderno", entity.docorderno); row.SetField("docordersuf", entity.docordersuf); 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("whse", entity.whse); row.SetField("msgwinselectfl", entity.msgwinselectfl); row.SetField("groupnm", entity.groupnm); row.SetField("groupseqno", entity.groupseqno); row.SetField("docjobid", entity.docjobid); row.SetField("docjobrevno", entity.docjobrevno); row.SetField("activitiesRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, ActivitiesBase entity) { row.SetField("cono", entity.cono); row.SetField("activityid", entity.activityid); row.SetField("activitiesRowID", entity.rowID.ToByteArray()); }