AutoMapperProfile.cs 1.0 KB

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