Files
Yi.Admin/Yi.Framework.Net6/test/Yi.Framework.Application/Student/MapperConfig/StudentProfile.cs

24 lines
715 B
C#
Raw Normal View History

using AutoMapper;
using System;
2023-01-12 14:58:16 +08:00
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Application.Contracts.Student.Dtos;
using Yi.Framework.Domain.Student.Entities;
2023-01-12 14:58:16 +08:00
namespace Yi.Framework.Application.Student.MapperConfig
{
public class StudentProfile: Profile
2023-01-12 14:58:16 +08:00
{
public StudentProfile()
{
CreateMap<StudentGetListInputVo, StudentEntity>();
CreateMap<StudentCreateInputVo, StudentEntity>();
CreateMap<StudentUpdateInputVo, StudentEntity>();
CreateMap<StudentEntity, StudentGetListOutputDto>();
CreateMap<StudentEntity, StudentGetOutputDto>();
}
2023-01-12 14:58:16 +08:00
}
}