/// <summary> /// 转换为持久化对象 /// </summary> /// <param name="entity">实体</param> public static ApplicationPo ToPo(this Admin.Systems.Domain.Models.Application entity) { if (entity == null) { return(null); } var result = entity.MapTo <ApplicationPo>(); result.Extend = JsonHelper.ToJson(CreateExtend(entity)); return(result); }
/// <summary> /// 创建扩展 /// </summary> /// <param name="entity">应用程序</param> private static ApplicationExtend CreateExtend(Admin.Systems.Domain.Models.Application entity) => entity.MapTo <ApplicationExtend>();