using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Dfs.WayneChina.FairbanksRTData.UniversalApiModels { public class UploadRecord { public int Id { get; set; } public string FileName { get; set; } public DateTime? TimeStamp { get; set; } public string Status { get; set; } public string Remark { get; set; } public override string ToString() { return GetType().GetProperties().Aggregate(string.Empty, (result, next) => result + $"{next.Name} : {(next.GetValue(this)?.ToString()) ?? string.Empty} "); } } }