示例#1
0
 /// <summary>
 /// 转换为网络勾子推送内容日志实体
 /// </summary>
 /// <param name="po">网络勾子推送内容日志持久化对象</param>
 public static WHLogs ToEntity(this WHLogsPo po)
 {
     if (po == null)
     {
         return(null);
     }
     return(po.MapTo(new WHLogs(po.Id)));
 }
示例#2
0
 /// <summary>
 /// 转换为网络勾子推送内容日志实体
 /// </summary>
 /// <param name="po">网络勾子推送内容日志持久化对象</param>
 private static WHLogs ToEntity2(this WHLogsPo po)
 {
     if (po == null)
     {
         return(null);
     }
     return(new WHLogs(po.Id)
     {
         WhId = po.WhId,
         WHTypes = po.WHTypes,
         RequestTop = po.RequestTop,
         Content = po.Content,
         ResponseTop = po.ResponseTop,
         ResponseContent = po.ResponseContent,
         ResponseBody = po.ResponseBody,
         CreationTime = po.CreationTime,
         IsDeleted = po.IsDeleted,
         Version = po.Version,
     });
 }