Example #1
0
        /// <summary>
        /// 将entity转换为vo
        /// </summary>
        public CategoryBasicVo toBasicVo(CategoryEntity entity)
        {
            CategoryBasicVo vo = new CategoryBasicVo();

            CopyToVo(vo, entity);


            return(vo);
        }
Example #2
0
        public List <CategoryBasicVo> toBasicVoList(List <CategoryEntity> entityList)
        {
            if (entityList == null)
            {
                return(null);
            }

            List <CategoryBasicVo> voList = new List <CategoryBasicVo>();

            foreach (CategoryEntity entity in entityList)
            {
                CategoryBasicVo vo = toBasicVo(entity);
                voList.Add(vo);
            }

            return(voList);
        }