重构项目结构,移除Assignment相关功能,优化Submission模块
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 12s
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 12s
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using AutoMapper;
|
||||
using AutoMapper.Internal.Mappers;
|
||||
using Entities.Contracts;
|
||||
using Entities.DTO;
|
||||
using TechHelper.Client.Exam;
|
||||
@@ -12,11 +11,8 @@ namespace TechHelper.Context
|
||||
{
|
||||
CreateMap<QuestionEx, QuestionDto>()
|
||||
.ForMember(d => d.Options, o => o.MapFrom(s => string.Join(Environment.NewLine, s.Options.Select(op => op.Text))));
|
||||
CreateMap<AssignmentQuestionEx, AssignmentQuestionDto>()
|
||||
.ForMember(d=>d.Description, o=>o.Ignore());
|
||||
CreateMap<AssignmentEx, AssignmentDto>();
|
||||
|
||||
|
||||
CreateMap<ExamQuestionEx, ExamQuestionDto>();
|
||||
CreateMap<ExamEx, ExamDto>();
|
||||
CreateMap<AssignmentCheckData, Submission>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user