コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <summary>
 /// 创建扩展
 /// </summary>
 /// <param name="entity">应用程序</param>
 private static ApplicationExtend CreateExtend(Admin.Systems.Domain.Models.Application entity) => entity.MapTo <ApplicationExtend>();