2023-01-21 22:40:10 +08:00
|
|
|
using AutoMapper;
|
2023-01-15 17:32:27 +08:00
|
|
|
using System;
|
2023-01-12 14:58:16 +08:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2023-01-24 20:20:32 +08:00
|
|
|
using Yi.Template.Application.Contracts.School.Dtos;
|
|
|
|
|
using Yi.Template.Domain.School.Entities;
|
2023-01-12 14:58:16 +08:00
|
|
|
|
2023-01-24 20:20:32 +08:00
|
|
|
namespace Yi.Template.Application.School.MapperConfig
|
2023-01-12 14:58:16 +08:00
|
|
|
{
|
2023-01-15 17:32:27 +08:00
|
|
|
public class StudentProfile: Profile
|
2023-01-12 14:58:16 +08:00
|
|
|
{
|
2023-01-15 17:32:27 +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
|
|
|
}
|
|
|
|
|
}
|