/// <summary> /// 异常日志映射 /// </summary> public static ExceptionLogModel ToModel(this ExceptionLog log) { ExceptionLogModel logModel = log.Map <ExceptionLog, ExceptionLogModel>(null, null, x => x.OccurredTime); logModel.OccurredTime = log.OccurredTime.ToString(CommonConstants.TimeFormat); return(logModel); }