/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, CommentBase entity) { row.SetField("type", entity.type); row.SetField("id", entity.id); row.SetField("line", entity.line); row.SetField("lineSequence", entity.lineSequence); row.SetField("commentLine", entity.commentLine); row.SetField("commentRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromCommentBase(ref DataRow row, CommentBase entity) { row.SetField("comment_num", entity.commentNum); row.SetField("type", entity.type); row.SetField("id", entity.id); row.SetField("line", entity.line); row.SetField("line_sequence", entity.lineSequence); row.SetField("comment_line", entity.commentLine); row.SetField("comment_text", entity.commentText); row.SetField("attributes", entity.attributes); row.SetField("custom_data1", entity.customData1); row.SetField("custom_data2", entity.customData2); row.SetField("custom_data3", entity.customData3); row.SetField("custom_data4", entity.customData4); row.SetField("custom_data5", entity.customData5); row.SetField("trans_user", entity.transUser); row.SetField("trans_date", entity.transDate); row.SetField("trans_proc", entity.transProc); row.SetField("commentRowID", entity.rowID.ToByteArray()); }