AutoMapperProfile.cs 848 B

1234567891011121314151617181920
  1. using AutoMapper;
  2. using WingInterfaceLibrary.DTO.Courses;
  3. using WingInterfaceLibrary.DTO.Education;
  4. namespace WingEducationService
  5. {
  6. public class AutoMapperProfile : Profile
  7. {
  8. public AutoMapperProfile()
  9. {
  10. CreateMap<BaseCourseInfoDTO, CoursePageDTO>().ReverseMap();
  11. CreateMap<BaseCourseInfoDTO, StudentInCoursePageDTO>().ReverseMap();
  12. CreateMap<CourseExaminationDTO, BaseCourseExaminationDTO>().ReverseMap();
  13. CreateMap<StudentExaminationDetailDTO, StudentExaminationDTO>().ReverseMap();
  14. CreateMap<TeacherSetExaminationAnswerDTO, ExaminationAnswerDTO>().ReverseMap();
  15. CreateMap<StudentSetExaminationAnswerDTO, ExaminationAnswerDTO>().ReverseMap();
  16. CreateMap<BaseStudentExaminationDTO, StudentExaminationDTO>().ReverseMap();
  17. }
  18. }
  19. }