/// <summary>
 /// 转换为应用更新日志实体
 /// </summary>
 /// <param name="dto">应用更新日志数据传输对象</param>
 public static ApplicationUpdaetLog ToEntity(this ApplicationUpdaetLogDto dto)
 {
     if (dto == null)
     {
         return(new ApplicationUpdaetLog());
     }
     return(dto.MapTo(new ApplicationUpdaetLog(dto.Id.ToGuid())));
 }
 /// <summary>
 /// 转换为应用更新日志实体
 /// </summary>
 /// <param name="dto">应用更新日志数据传输对象</param>
 public static ApplicationUpdaetLog ToEntity3(this ApplicationUpdaetLogDto dto)
 {
     if (dto == null)
     {
         return(new ApplicationUpdaetLog());
     }
     return(ApplicationUpdaetLogFactory.Create(
                logId: dto.Id.ToGuid(),
                appId: dto.AppId,
                updateTime: dto.UpdateTime,
                versionNO: dto.VersionNO,
                content: dto.Content,
                creationTime: dto.CreationTime,
                creatorId: dto.CreatorId,
                lastModificationTime: dto.LastModificationTime,
                lastModifierId: dto.LastModifierId,
                version: dto.Version
                ));
 }
 /// <summary>
 /// 转换为应用更新日志实体
 /// </summary>
 /// <param name="dto">应用更新日志数据传输对象</param>
 public static ApplicationUpdaetLog ToEntity2(this ApplicationUpdaetLogDto dto)
 {
     if (dto == null)
     {
         return(new ApplicationUpdaetLog());
     }
     return(new ApplicationUpdaetLog(dto.Id.ToGuid())
     {
         AppId = dto.AppId,
         UpdateTime = dto.UpdateTime,
         VersionNO = dto.VersionNO,
         Content = dto.Content,
         CreationTime = dto.CreationTime,
         CreatorId = dto.CreatorId,
         LastModificationTime = dto.LastModificationTime,
         LastModifierId = dto.LastModifierId,
         Version = dto.Version,
     });
 }